Pol  Revision:4b29d2b
Pol::Clib::VectorConfigElem Class Reference

#include <cfgelem.h>

+ Inheritance diagram for Pol::Clib::VectorConfigElem:

Public Member Functions

 VectorConfigElem ()
 
virtual ~VectorConfigElem ()
 
void add_prop (std::string propname, std::string propval)
 
void add_prop (std::string propname, unsigned int lval)
 
void add_prop (std::string propname, unsigned short sval)
 
void clear_prop (const char *propname)
 
bool has_prop (const char *propname) const
 
bool read_prop (const char *propname, std::string *value) const
 
std::string read_string (const char *propname) const
 
std::string read_string (const char *propname, const char *dflt) const
 
bool remove_bool (const char *propname)
 
bool remove_bool (const char *propname, bool dflt)
 
double remove_double (const char *propname, double dflt)
 
bool remove_first_prop (std::string *propname, std::string *value)
 
float remove_float (const char *propname, float dflt)
 
int remove_int (const char *propname)
 
int remove_int (const char *propname, int dflt)
 
bool remove_prop (const char *propname, std::string *value)
 
bool remove_prop (const char *propname, unsigned int *plong)
 
bool remove_prop (const char *propname, unsigned short *pushort)
 
std::string remove_string (const char *propname)
 
std::string remove_string (const char *propname, const char *dflt)
 
unsigned int remove_ulong (const char *propname)
 
unsigned int remove_ulong (const char *propname, unsigned int dflt)
 
unsigned short remove_ushort (const char *propname)
 
unsigned short remove_ushort (const char *propname, unsigned short dflt)
 
const char * rest () const
 
void set_rest (const char *newrest)
 
void set_source (const ConfigElem &elem)
 
POL_NORETURN void throw_error (const std::string &errmsg) const
 
const char * type () const
 
bool type_is (const char *name) const
 
void warn (const std::string &errmsg) const
 
- Public Member Functions inherited from Pol::Clib::ConfigElemBase
virtual ~ConfigElemBase ()
 
virtual size_t estimateSize () const
 
const char * rest () const
 
const char * type () const
 
bool type_is (const char *name) const
 

Protected Types

typedef std::vector< ConfigProperty * > Props
 

Protected Member Functions

POL_NORETURN void prop_not_found (const char *propname) const
 
- Protected Member Functions inherited from Pol::Clib::ConfigElemBase
 ConfigElemBase ()
 

Protected Attributes

Props properties
 
std::string rest_
 
ConfigSourcesource_
 
std::string type_
 
- Protected Attributes inherited from Pol::Clib::ConfigElemBase
const ConfigSource_source
 
std::string rest_
 
std::string type_
 

Friends

class ConfigFile
 

Detailed Description

Definition at line 120 of file cfgelem.h.

Member Typedef Documentation

typedef std::vector<ConfigProperty*> Pol::Clib::VectorConfigElem::Props
protected

Definition at line 178 of file cfgelem.h.

Constructor & Destructor Documentation

Pol::Clib::VectorConfigElem::VectorConfigElem ( )
Pol::Clib::VectorConfigElem::~VectorConfigElem ( )
virtual

Definition at line 253 of file cfgfile.cpp.

Member Function Documentation

void Pol::Clib::VectorConfigElem::add_prop ( std::string  propname,
std::string  propval 
)

Definition at line 494 of file cfgfile.cpp.

References Pol::Clib::ConfigElem::properties.

void Pol::Clib::VectorConfigElem::add_prop ( std::string  propname,
unsigned int  lval 
)

Definition at line 521 of file cfgfile.cpp.

References Pol::Clib::ConfigElem::properties.

void Pol::Clib::VectorConfigElem::add_prop ( std::string  propname,
unsigned short  sval 
)

Definition at line 510 of file cfgfile.cpp.

References Pol::Clib::ConfigElem::properties.

void Pol::Clib::VectorConfigElem::clear_prop ( const char *  propname)
bool Pol::Clib::VectorConfigElem::has_prop ( const char *  propname) const

Definition at line 116 of file cfgfile.cpp.

References Pol::Clib::ConfigElem::properties.

POL_NORETURN void Pol::Clib::VectorConfigElem::prop_not_found ( const char *  propname) const
protected
bool Pol::Clib::VectorConfigElem::read_prop ( const char *  propname,
std::string *  value 
) const

Definition at line 172 of file cfgfile.cpp.

References Pol::Clib::ConfigElem::properties.

std::string Pol::Clib::VectorConfigElem::read_string ( const char *  propname) const
std::string Pol::Clib::VectorConfigElem::read_string ( const char *  propname,
const char *  dflt 
) const
bool Pol::Clib::VectorConfigElem::remove_bool ( const char *  propname)
bool Pol::Clib::VectorConfigElem::remove_bool ( const char *  propname,
bool  dflt 
)
double Pol::Clib::VectorConfigElem::remove_double ( const char *  propname,
double  dflt 
)
bool Pol::Clib::VectorConfigElem::remove_first_prop ( std::string *  propname,
std::string *  value 
)
float Pol::Clib::VectorConfigElem::remove_float ( const char *  propname,
float  dflt 
)
int Pol::Clib::VectorConfigElem::remove_int ( const char *  propname)
int Pol::Clib::VectorConfigElem::remove_int ( const char *  propname,
int  dflt 
)
bool Pol::Clib::VectorConfigElem::remove_prop ( const char *  propname,
std::string *  value 
)
bool Pol::Clib::VectorConfigElem::remove_prop ( const char *  propname,
unsigned int *  plong 
)
bool Pol::Clib::VectorConfigElem::remove_prop ( const char *  propname,
unsigned short *  pushort 
)
std::string Pol::Clib::VectorConfigElem::remove_string ( const char *  propname)
std::string Pol::Clib::VectorConfigElem::remove_string ( const char *  propname,
const char *  dflt 
)
unsigned int Pol::Clib::VectorConfigElem::remove_ulong ( const char *  propname)
unsigned int Pol::Clib::VectorConfigElem::remove_ulong ( const char *  propname,
unsigned int  dflt 
)
unsigned short Pol::Clib::VectorConfigElem::remove_ushort ( const char *  propname)
unsigned short Pol::Clib::VectorConfigElem::remove_ushort ( const char *  propname,
unsigned short  dflt 
)
const char* Pol::Clib::VectorConfigElem::rest ( ) const
void Pol::Clib::VectorConfigElem::set_rest ( const char *  newrest)
void Pol::Clib::VectorConfigElem::set_source ( const ConfigElem elem)
void Pol::Clib::VectorConfigElem::throw_error ( const std::string &  errmsg) const
const char* Pol::Clib::VectorConfigElem::type ( ) const
bool Pol::Clib::VectorConfigElem::type_is ( const char *  name) const
void Pol::Clib::VectorConfigElem::warn ( const std::string &  errmsg) const

Friends And Related Function Documentation

friend class ConfigFile
friend

Definition at line 126 of file cfgelem.h.

Member Data Documentation

Props Pol::Clib::VectorConfigElem::properties
protected
std::string Pol::Clib::VectorConfigElem::rest_
protected

Definition at line 176 of file cfgelem.h.

Referenced by Pol::Clib::ConfigFile::_read().

ConfigSource* Pol::Clib::VectorConfigElem::source_
protected

Definition at line 181 of file cfgelem.h.

std::string Pol::Clib::VectorConfigElem::type_
protected

Definition at line 175 of file cfgelem.h.

Referenced by Pol::Clib::ConfigFile::_read().


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