Pol  Rev 533
VectorConfigElem Class Reference

#include <cfgelem.h>

+ Inheritance diagram for VectorConfigElem:
+ Collaboration diagram for VectorConfigElem:

List of all members.

Public Member Functions

 VectorConfigElem ()
 ~VectorConfigElem ()
void add_prop (const char *propname, const char *str)
void add_prop (const char *propname, unsigned int lval)
void add_prop (const char *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)
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

Protected Types

typedef std::vector
< ConfigProperty * > 
Props

Protected Member Functions

void prop_not_found (const char *propname) const

Protected Attributes

Props properties
std::string rest_
ConfigSourcesource_
std::string type_

Friends

class ConfigFile

Detailed Description

Definition at line 114 of file cfgelem.h.


Member Typedef Documentation

typedef std::vector<ConfigProperty*> VectorConfigElem::Props [protected]

Definition at line 171 of file cfgelem.h.


Constructor & Destructor Documentation


Member Function Documentation

void VectorConfigElem::add_prop ( const char *  propname,
const char *  str 
)

Definition at line 542 of file cfgfile.cpp.

References properties.

void VectorConfigElem::add_prop ( const char *  propname,
unsigned int  lval 
)

Definition at line 584 of file cfgfile.cpp.

References OSTRINGSTREAM, OSTRINGSTREAM_STR, and properties.

void VectorConfigElem::add_prop ( const char *  propname,
unsigned short  sval 
)

Definition at line 566 of file cfgfile.cpp.

References OSTRINGSTREAM, OSTRINGSTREAM_STR, and properties.

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

Definition at line 142 of file cfgfile.cpp.

References ConfigProperty::name_, and properties.

void VectorConfigElem::prop_not_found ( const char *  propname) const [protected]
bool VectorConfigElem::read_prop ( const char *  propname,
std::string *  value 
) const

Definition at line 201 of file cfgfile.cpp.

References ConfigProperty::name_, properties, and ConfigProperty::value_.

std::string VectorConfigElem::read_string ( const char *  propname) const
std::string VectorConfigElem::read_string ( const char *  propname,
const char *  dflt 
) const
bool VectorConfigElem::remove_bool ( const char *  propname)
bool VectorConfigElem::remove_bool ( const char *  propname,
bool  dflt 
)
double VectorConfigElem::remove_double ( const char *  propname,
double  dflt 
)
bool VectorConfigElem::remove_first_prop ( std::string *  propname,
std::string *  value 
)

Definition at line 595 of file cfgfile.cpp.

References ConfigProperty::name_, properties, and ConfigProperty::value_.

float VectorConfigElem::remove_float ( const char *  propname,
float  dflt 
)
int VectorConfigElem::remove_int ( const char *  propname)
int VectorConfigElem::remove_int ( const char *  propname,
int  dflt 
)
bool VectorConfigElem::remove_prop ( const char *  propname,
std::string *  value 
)

Definition at line 171 of file cfgfile.cpp.

References ConfigProperty::name_, properties, and ConfigProperty::value_.

bool VectorConfigElem::remove_prop ( const char *  propname,
unsigned int *  plong 
)

Definition at line 244 of file cfgfile.cpp.

References ConfigProperty::name_, properties, and ConfigProperty::value_.

bool VectorConfigElem::remove_prop ( const char *  propname,
unsigned short *  pushort 
)

Definition at line 293 of file cfgfile.cpp.

References ConfigProperty::name_, properties, throw_error(), and ConfigProperty::value_.

+ Here is the call graph for this function:

std::string VectorConfigElem::remove_string ( const char *  propname)
std::string VectorConfigElem::remove_string ( const char *  propname,
const char *  dflt 
)
unsigned int VectorConfigElem::remove_ulong ( const char *  propname)
unsigned int VectorConfigElem::remove_ulong ( const char *  propname,
unsigned int  dflt 
)
unsigned short VectorConfigElem::remove_ushort ( const char *  propname)
unsigned short VectorConfigElem::remove_ushort ( const char *  propname,
unsigned short  dflt 
)
const char* VectorConfigElem::rest ( ) const

Reimplemented from ConfigElemBase.

void VectorConfigElem::set_rest ( const char *  newrest)
void VectorConfigElem::set_source ( const ConfigElem elem)
void VectorConfigElem::throw_error ( const std::string &  errmsg) const

Definition at line 337 of file cfgfile.cpp.

References ConfigElemBase::_source, and ConfigSource::display_error().

Referenced by remove_prop().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

const char* VectorConfigElem::type ( ) const

Reimplemented from ConfigElemBase.

bool VectorConfigElem::type_is ( const char *  name) const

Reimplemented from ConfigElemBase.

void VectorConfigElem::warn ( const std::string &  errmsg) const

Friends And Related Function Documentation

friend class ConfigFile [friend]

Definition at line 120 of file cfgelem.h.


Member Data Documentation

std::string VectorConfigElem::rest_ [protected]

Reimplemented from ConfigElemBase.

Definition at line 169 of file cfgelem.h.

Referenced by ConfigFile::_read().

Definition at line 174 of file cfgelem.h.

std::string VectorConfigElem::type_ [protected]

Reimplemented from ConfigElemBase.

Definition at line 168 of file cfgelem.h.

Referenced by ConfigFile::_read().


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