LibreOffice Module tools (master) 1
|
#include <config.hxx>
Public Member Functions | |
Config (const OUString &rFileName) | |
~Config () | |
void | SetGroup (const OString &rGroup) |
const OString & | GetGroup () const |
void | DeleteGroup (std::string_view rGroup) |
OString | GetGroupName (sal_uInt16 nGroup) const |
sal_uInt16 | GetGroupCount () const |
bool | HasGroup (std::string_view rGroup) const |
OString | ReadKey (const OString &rKey) const |
OString | ReadKey (const OString &rKey, const OString &rDefault) const |
void | WriteKey (const OString &rKey, const OString &rValue) |
void | DeleteKey (std::string_view rKey) |
OString | GetKeyName (sal_uInt16 nKey) const |
OString | ReadKey (sal_uInt16 nKey) const |
sal_uInt16 | GetKeyCount () const |
void | Flush () |
Private Member Functions | |
TOOLS_DLLPRIVATE bool | ImplUpdateConfig () const |
TOOLS_DLLPRIVATE ImplGroupData * | ImplGetGroup () const |
Config (const Config &rConfig)=delete | |
Config & | operator= (const Config &rConfig)=delete |
Private Attributes | |
OUString | maFileName |
OString | maGroupName |
std::unique_ptr< ImplConfigData > | mpData |
ImplGroupData * | mpActGroup |
sal_uInt32 | mnDataUpdateId |
Definition at line 29 of file config.hxx.
Config::Config | ( | const OUString & | rFileName | ) |
Definition at line 621 of file config.cxx.
References ImplGetConfigData(), maFileName, mnDataUpdateId, mpActGroup, mpData, SAL_INFO, and toUncPath().
Config::~Config | ( | ) |
Definition at line 632 of file config.cxx.
References Flush(), ImplDeleteConfigData(), mpData, and SAL_INFO.
|
privatedelete |
void Config::DeleteGroup | ( | std::string_view | rGroup | ) |
Definition at line 650 of file config.cxx.
References ImplUpdateConfig(), ImplGroupData::maGroupName, mnDataUpdateId, mpData, ImplGroupData::mpFirstKey, and ImplGroupData::mpNext.
void Config::DeleteKey | ( | std::string_view | rKey | ) |
Definition at line 828 of file config.cxx.
References ImplGetGroup(), ImplUpdateConfig(), mpData, and ImplGroupData::mpFirstKey.
void Config::Flush | ( | void | ) |
Definition at line 940 of file config.cxx.
References ImplWriteConfig(), and mpData.
Referenced by ~Config().
|
inline |
Definition at line 46 of file config.hxx.
Referenced by GetKeyCount(), GetKeyName(), ReadKey(), and WriteKey().
sal_uInt16 Config::GetGroupCount | ( | ) | const |
Definition at line 717 of file config.cxx.
References mpData, and ImplGroupData::mpNext.
OString Config::GetGroupName | ( | sal_uInt16 | nGroup | ) | const |
Definition at line 697 of file config.cxx.
References ImplGroupData::maGroupName, mpData, and ImplGroupData::mpNext.
sal_uInt16 Config::GetKeyCount | ( | ) | const |
Definition at line 866 of file config.cxx.
References GetGroup(), ImplGetGroup(), maFileName, ImplGroupData::mpFirstKey, nCount, and SAL_INFO.
OString Config::GetKeyName | ( | sal_uInt16 | nKey | ) | const |
Definition at line 888 of file config.cxx.
References GetGroup(), ImplGetGroup(), maFileName, ImplGroupData::mpFirstKey, and SAL_INFO.
bool Config::HasGroup | ( | std::string_view | rGroup | ) | const |
Definition at line 730 of file config.cxx.
References ImplGroupData::maGroupName, mpData, and ImplGroupData::mpNext.
|
private |
Definition at line 584 of file config.cxx.
References maGroupName, ImplGroupData::maGroupName, mnDataUpdateId, ImplGroupData::mnEmptyLines, mpActGroup, mpData, ImplGroupData::mpFirstKey, and ImplGroupData::mpNext.
Referenced by DeleteKey(), GetKeyCount(), GetKeyName(), ReadKey(), and WriteKey().
|
private |
Definition at line 570 of file config.cxx.
References ImplDeleteConfigData(), ImplReadConfig(), ImplSysGetConfigTimeStamp(), maFileName, and mpData.
Referenced by DeleteGroup(), DeleteKey(), and WriteKey().
OString Config::ReadKey | ( | const OString & | rKey | ) | const |
OString Config::ReadKey | ( | const OString & | rKey, |
const OString & | rDefault | ||
) | const |
Definition at line 754 of file config.cxx.
References GetGroup(), ImplGetGroup(), maFileName, ImplGroupData::mpFirstKey, and SAL_INFO.
OString Config::ReadKey | ( | sal_uInt16 | nKey | ) | const |
Definition at line 914 of file config.cxx.
References GetGroup(), ImplGetGroup(), maFileName, ImplGroupData::mpFirstKey, and SAL_INFO.
void Config::SetGroup | ( | const OString & | rGroup | ) |
Definition at line 640 of file config.cxx.
References maGroupName, mnDataUpdateId, and mpData.
void Config::WriteKey | ( | const OString & | rKey, |
const OString & | rValue | ||
) |
Definition at line 776 of file config.cxx.
References GetGroup(), ImplGetGroup(), ImplUpdateConfig(), maFileName, mpData, ImplGroupData::mpFirstKey, and SAL_INFO.
|
private |
Definition at line 32 of file config.hxx.
Referenced by Config(), GetKeyCount(), GetKeyName(), ImplUpdateConfig(), ReadKey(), and WriteKey().
|
private |
Definition at line 33 of file config.hxx.
Referenced by ImplGetGroup(), and SetGroup().
|
private |
Definition at line 36 of file config.hxx.
Referenced by Config(), DeleteGroup(), ImplGetGroup(), and SetGroup().
|
private |
Definition at line 35 of file config.hxx.
Referenced by Config(), and ImplGetGroup().
|
private |
Definition at line 34 of file config.hxx.
Referenced by Config(), DeleteGroup(), DeleteKey(), Flush(), GetGroupCount(), GetGroupName(), HasGroup(), ImplGetGroup(), ImplUpdateConfig(), SetGroup(), WriteKey(), and ~Config().