ServerConfig::AttributeListΒΆ
-
class
kanzi::connect::ServerConfig::AttributeList List of configuration specific attributes.
Public Functions
-
void
add(const string &name, const string &value, const string type = "") Inserts attribute to attribute list.
- Parameters
name: the name of the attributevalue: value for the attributetype: optional type information for the attribute.
-
void
clear() Clears the list.
-
bool
contains(const string &name) const Does this list contain a named attribute?
- Return
true if contains, false otherwise.
- Parameters
the: name
-
size_t
count() const Amount of attributes held.
- Return
amount
-
bool
getBool(const string &name, const bool defaultValue) const Retrieve boolean type attribute.
- Return
Attribute value
- Parameters
name: the name of the attributedefaultValue: the default value (optional) to return if not found.
-
int
getInt(const string &name, int defaultValue = 0) const Retrieve integer type attribute.
- Return
integer attribute value
- Parameters
name: the name of the attributedefaultValue: the default value (optional) to return if not found.
-
double
getReal(const string &name, const double defaultValue = 0.0) const Retrieve floating point type attribute.
- Return
Attribute value
- Parameters
name: the name of the attributedefaultValue: the default value (optional) to return if not found.
-
string
getString(const string &name, string defaultValue = "") const Retrieve string type attribute.
- Return
string attribute value
- Parameters
name: the name of the attributedefaultValue: the default value (optional) to return if not found.
-
string
getType(const string &name, const string defaultValue = "") const Retrieve the optional type of the given attribute.
- Return
optinal type for the attribute.
- Parameters
name: the name of the attribute
-
vector<string>
keys() const All attribute names.
- Return
list of attribute names.
-
void
setBool(const string &name, const bool value) Set the attribute value to be specific.
- Parameters
name: of the attribute to setvalue: value of the attribute
-
void
setInt(const string &name, int value) Sets the attribute value.
- Parameters
name: the name of the attributevalue: new value for the attribute.
-
void
setReal(const string &name, const double value) Set the attribute value to be specific.
- Parameters
name: of the attribute to setvalue: value of the attribute
-
void
setString(const string &name, string value) Set the attribute value to be specific.
- Parameters
name: of the attribute to setvalue: value of the attribute
-
void