|
Pol
Revision:cb584c9
|
#include <cfgrepos.h>
Inheritance diagram for Pol::Core::StoredConfigFile:Public Types | |
| typedef std::map< std::string, ElemRef, Clib::ci_cmp_pred > | ElementsByName |
| typedef std::map< int, ElemRef > | ElementsByNum |
| typedef ref_ptr< StoredConfigElem > | ElemRef |
Public Member Functions | |
| StoredConfigFile () | |
| ElementsByName::const_iterator | byname_begin () |
| ElementsByName::const_iterator | byname_end () |
| ElementsByNum::const_iterator | bynum_begin () |
| ElementsByNum::const_iterator | bynum_end () |
| size_t | estimateSize () const |
| ElemRef | findelem (int key) |
| ElemRef | findelem (const std::string &key) |
| void | load (Clib::ConfigFile &cf) |
| void | load_tus_scp (const std::string &filename) |
| int | maxintkey () const |
| time_t | modified () const |
Public Member Functions inherited from ref_counted | |
| unsigned int | add_ref () |
| unsigned int | count () const |
| unsigned int | release () |
Public Attributes | |
| bool | reload |
Private Member Functions | |
| StoredConfigFile (const StoredConfigFile &) | |
| StoredConfigFile & | operator= (const StoredConfigFile &) |
Private Attributes | |
| ElementsByName | elements_byname_ |
| ElementsByNum | elements_bynum_ |
| time_t | modified_ |
Additional Inherited Members | |
Protected Member Functions inherited from ref_counted | |
| ref_counted () | |
| ~ref_counted ()=default | |
Protected Attributes inherited from ref_counted | |
| std::atomic< unsigned int > | _count |
Definition at line 66 of file cfgrepos.h.
| typedef std::map<std::string, ElemRef, Clib::ci_cmp_pred> Pol::Core::StoredConfigFile::ElementsByName |
Definition at line 82 of file cfgrepos.h.
| typedef std::map<int, ElemRef> Pol::Core::StoredConfigFile::ElementsByNum |
Definition at line 85 of file cfgrepos.h.
Definition at line 75 of file cfgrepos.h.
| Pol::Core::StoredConfigFile::StoredConfigFile | ( | ) |
Definition at line 112 of file cfgrepos.cpp.
Referenced by Pol::Core::CreateEmptyStoredConfigFile(), Pol::Core::FindConfigFile(), and Pol::Core::LoadTusScpFile().
|
private |
|
inline |
Definition at line 83 of file cfgrepos.h.
Referenced by Pol::Module::ConfigFileExecutorModule::mf_GetConfigStringKeys().
|
inline |
Definition at line 84 of file cfgrepos.h.
Referenced by Pol::Module::ConfigFileExecutorModule::mf_GetConfigStringKeys().
|
inline |
Definition at line 86 of file cfgrepos.h.
Referenced by Pol::Module::ConfigFileExecutorModule::mf_GetConfigIntKeys().
|
inline |
Definition at line 87 of file cfgrepos.h.
Referenced by Pol::Module::ConfigFileExecutorModule::mf_GetConfigIntKeys().
| size_t Pol::Core::StoredConfigFile::estimateSize | ( | ) | const |
Definition at line 227 of file cfgrepos.cpp.
References elements_byname_, and elements_bynum_.
| StoredConfigFile::ElemRef Pol::Core::StoredConfigFile::findelem | ( | int | key | ) |
Definition at line 151 of file cfgrepos.cpp.
References elements_bynum_.
Referenced by Pol::Module::UOExecutorModule::mf_ApplyConstraint(), and Pol::Module::ConfigFileExecutorModule::mf_FindConfigElement().
| StoredConfigFile::ElemRef Pol::Core::StoredConfigFile::findelem | ( | const std::string & | key | ) |
Definition at line 160 of file cfgrepos.cpp.
References elements_byname_.
| void Pol::Core::StoredConfigFile::load | ( | Clib::ConfigFile & | cf | ) |
Definition at line 130 of file cfgrepos.cpp.
References elements_byname_, elements_bynum_, Pol::Clib::ConfigFile::modified(), modified_, Pol::Clib::ConfigFile::read(), reload, and Pol::Clib::ConfigElemBase::rest().
| void Pol::Core::StoredConfigFile::load_tus_scp | ( | const std::string & | filename | ) |
Definition at line 196 of file cfgrepos.cpp.
References Pol::Bscript::bobject_from_string(), ref_counted::count(), elements_bynum_, Pol::Core::extractkey(), ref_ptr< T >::set(), and Pol::Clib::splitnamevalue().
| int Pol::Core::StoredConfigFile::maxintkey | ( | ) | const |
Definition at line 169 of file cfgrepos.cpp.
References elements_bynum_.
Referenced by Pol::Module::ConfigFileExecutorModule::mf_GetConfigMaxIntKey().
| time_t Pol::Core::StoredConfigFile::modified | ( | ) | const |
Definition at line 183 of file cfgrepos.cpp.
References modified_.
|
private |
|
private |
Definition at line 90 of file cfgrepos.h.
Referenced by estimateSize(), findelem(), and load().
|
private |
Definition at line 92 of file cfgrepos.h.
Referenced by estimateSize(), findelem(), load(), load_tus_scp(), and maxintkey().
|
private |
Definition at line 94 of file cfgrepos.h.
Referenced by load(), and modified().
| bool Pol::Core::StoredConfigFile::reload |
Definition at line 88 of file cfgrepos.h.
Referenced by load().