Pol  Revision:cb584c9
Pol::Core::StoredConfigFile Class Reference

#include <cfgrepos.h>

+ Inheritance diagram for Pol::Core::StoredConfigFile:

Public Types

typedef std::map< std::string, ElemRef, Clib::ci_cmp_predElementsByName
typedef std::map< int, ElemRefElementsByNum
typedef ref_ptr< StoredConfigElemElemRef

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 &)
StoredConfigFileoperator= (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

Detailed Description

Definition at line 66 of file cfgrepos.h.

Member Typedef Documentation

Definition at line 82 of file cfgrepos.h.

Definition at line 85 of file cfgrepos.h.

Constructor & Destructor Documentation

Pol::Core::StoredConfigFile::StoredConfigFile ( )
Pol::Core::StoredConfigFile::StoredConfigFile ( const StoredConfigFile )

Member Function Documentation

ElementsByName::const_iterator Pol::Core::StoredConfigFile::byname_begin ( )
ElementsByName::const_iterator Pol::Core::StoredConfigFile::byname_end ( )
ElementsByNum::const_iterator Pol::Core::StoredConfigFile::bynum_begin ( )
ElementsByNum::const_iterator Pol::Core::StoredConfigFile::bynum_end ( )
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)
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_tus_scp ( const std::string &  filename)
int Pol::Core::StoredConfigFile::maxintkey ( ) const
time_t Pol::Core::StoredConfigFile::modified ( ) const

Definition at line 183 of file cfgrepos.cpp.

References modified_.

StoredConfigFile& Pol::Core::StoredConfigFile::operator= ( const StoredConfigFile )

Member Data Documentation

ElementsByName Pol::Core::StoredConfigFile::elements_byname_

Definition at line 90 of file cfgrepos.h.

Referenced by estimateSize(), findelem(), and load().

ElementsByNum Pol::Core::StoredConfigFile::elements_bynum_

Definition at line 92 of file cfgrepos.h.

Referenced by estimateSize(), findelem(), load(), load_tus_scp(), and maxintkey().

time_t Pol::Core::StoredConfigFile::modified_

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().

The documentation for this class was generated from the following files: