|
Pol
Revision:cb584c9
|
#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_ |
| ConfigSource * | source_ |
| std::string | type_ |
Protected Attributes inherited from Pol::Clib::ConfigElemBase | |
| const ConfigSource * | _source |
| std::string | rest_ |
| std::string | type_ |
Friends | |
| class | ConfigFile |
|
protected |
| Pol::Clib::VectorConfigElem::VectorConfigElem | ( | ) |
|
virtual |
Definition at line 253 of file cfgfile.cpp.
| 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.
|
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 | ||
| ) |
Definition at line 528 of file cfgfile.cpp.
References Pol::Clib::ConfigProperty::name_, Pol::Clib::ConfigElem::properties, and Pol::Clib::ConfigProperty::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 | ||
| ) |
Definition at line 142 of file cfgfile.cpp.
References Pol::Clib::ConfigProperty::name_, Pol::Clib::ConfigElem::properties, and Pol::Clib::ConfigProperty::value_.
| bool Pol::Clib::VectorConfigElem::remove_prop | ( | const char * | propname, |
| unsigned int * | plong | ||
| ) |
Definition at line 212 of file cfgfile.cpp.
References Pol::Clib::ConfigProperty::name_, Pol::Clib::ConfigElem::properties, and Pol::Clib::ConfigProperty::value_.
| bool Pol::Clib::VectorConfigElem::remove_prop | ( | const char * | propname, |
| unsigned short * | pushort | ||
| ) |
Definition at line 255 of file cfgfile.cpp.
References Pol::Clib::ConfigProperty::name_, Pol::Clib::ConfigElem::properties, Pol::Clib::ConfigElem::throw_error(), and Pol::Clib::ConfigProperty::value_.
| 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 |
Definition at line 291 of file cfgfile.cpp.
References Pol::Clib::ConfigElemBase::_source, and Pol::Clib::ConfigSource::display_error().
| 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 |
|
friend |
|
protected |
Definition at line 179 of file cfgelem.h.
Referenced by Pol::Clib::ConfigFile::_read(), and Pol::Clib::ConfigFile::read_properties().
|
protected |
Definition at line 176 of file cfgelem.h.
Referenced by Pol::Clib::ConfigFile::_read().
|
protected |
|
protected |
Definition at line 175 of file cfgelem.h.
Referenced by Pol::Clib::ConfigFile::_read().