#include <yateclass.h>
Inheritance diagram for NamedList:
Public Member Functions | |
NamedList (const char *name) | |
NamedList (const NamedList &original) | |
virtual void * | getObject (const String &name) const |
unsigned int | length () const |
unsigned int | count () const |
NamedList & | addParam (NamedString *param) |
NamedList & | addParam (const char *name, const char *value) |
NamedList & | setParam (NamedString *param) |
NamedList & | setParam (const char *name, const char *value) |
NamedList & | clearParam (const String &name) |
NamedString * | getParam (const String &name) const |
NamedString * | getParam (unsigned int index) const |
const char * | getValue (const String &name, const char *defvalue=0) const |
int | getIntValue (const String &name, int defvalue=0) const |
int | getIntValue (const String &name, const TokenDict *tokens, int defvalue=0) const |
double | getDoubleValue (const String &name, double defvalue=0.0) const |
bool | getBoolValue (const String &name, bool defvalue=false) const |
int | replaceParams (String &str, bool sqlEsc=false, char extraEsc=0) const |
This class holds a named list of named strings
|
Creates a new named list.
|
|
Copy constructor
|
|
Add a named string to the parameter list.
|
|
Add a named string to the parameter list.
|
|
Clars all instances of a named string in the parameter list.
|
|
Get the number of non-null parameters
|
|
Retrive the boolean value of a parameter.
|
|
Retrive the floating point value of a parameter.
|
|
Retrive the numeric value of a parameter trying first a table lookup.
|
|
Retrive the numeric value of a parameter.
|
|
Get a pointer to a derived class given that class name
Reimplemented from String. Reimplemented in Message. |
|
Locate a named string in the parameter list.
|
|
Locate a named string in the parameter list.
|
|
Retrive the value of a named parameter.
|
|
Get the number of parameters
Reimplemented from String. |
|
Replaces all ${paramname} in a String with the corresponding parameters
|
|
Set a named string in the parameter list.
|
|
Set a named string in the parameter list.
|