LibreOffice Module desktop (master) 1
|
#include <dp_persmap.h>
Public Member Functions | |
~PersistentMap () | |
PersistentMap (OUString const &url) | |
PersistentMap () | |
in mem db More... | |
bool | has (OString const &key) const |
bool | get (OString *value, OString const &key) const |
const t_string2string_map & | getEntries () const |
void | put (OString const &key, OString const &value) |
bool | erase (OString const &key) |
Private Member Functions | |
void | open () |
void | readAll () |
void | add (OString const &key, OString const &value) |
void | flush () |
Private Attributes | |
::osl::File | m_MapFile |
t_string2string_map | m_entries |
bool | m_bIsOpen |
bool | m_bToBeCreated |
bool | m_bIsDirty |
Definition at line 32 of file dp_persmap.h.
dp_misc::PersistentMap::~PersistentMap | ( | ) |
Definition at line 61 of file dp_persmap.cxx.
References flush(), m_bIsDirty, m_bIsOpen, and m_MapFile.
dp_misc::PersistentMap::PersistentMap | ( | OUString const & | url | ) |
Definition at line 45 of file dp_persmap.cxx.
dp_misc::PersistentMap::PersistentMap | ( | ) |
in mem db
Definition at line 54 of file dp_persmap.cxx.
|
private |
Definition at line 284 of file dp_persmap.cxx.
References m_bIsDirty, m_entries, and value.
bool dp_misc::PersistentMap::erase | ( | OString const & | key | ) |
Definition at line 300 of file dp_persmap.cxx.
References flush(), m_bIsDirty, m_entries, and nCount.
|
private |
Definition at line 216 of file dp_persmap.cxx.
References dp_misc::encodeString(), m_bIsDirty, m_bIsOpen, m_bToBeCreated, m_entries, m_MapFile, o3tl::make_unsigned(), dp_misc::PmapMagic, and SAL_WARN.
Referenced by erase(), put(), and ~PersistentMap().
bool dp_misc::PersistentMap::get | ( | OString * | value, |
OString const & | key | ||
) | const |
Definition at line 274 of file dp_persmap.cxx.
References m_entries, and value.
Referenced by has().
|
inline |
Definition at line 48 of file dp_persmap.h.
References m_entries.
bool dp_misc::PersistentMap::has | ( | OString const & | key | ) | const |
Definition at line 269 of file dp_persmap.cxx.
References get().
|
private |
Definition at line 146 of file dp_persmap.cxx.
References m_bIsOpen, m_bToBeCreated, m_MapFile, and readAll().
Referenced by PersistentMap().
void dp_misc::PersistentMap::put | ( | OString const & | key, |
OString const & | value | ||
) |
Definition at line 291 of file dp_persmap.cxx.
References add(), flush(), m_bIsDirty, and value.
|
private |
Definition at line 164 of file dp_persmap.cxx.
References add(), dp_misc::decodeString(), i, m_bIsDirty, m_entries, m_MapFile, dp_misc::PmapMagic, and SAL_WARN.
Referenced by open().
|
private |
Definition at line 38 of file dp_persmap.h.
Referenced by add(), erase(), flush(), put(), readAll(), and ~PersistentMap().
|
private |
Definition at line 36 of file dp_persmap.h.
Referenced by flush(), open(), and ~PersistentMap().
|
private |
Definition at line 37 of file dp_persmap.h.
|
private |
Definition at line 35 of file dp_persmap.h.
Referenced by add(), erase(), flush(), get(), getEntries(), and readAll().
|
private |
Definition at line 34 of file dp_persmap.h.
Referenced by flush(), open(), readAll(), and ~PersistentMap().