#include <SyncEvolutionConfig.h>
Public Member Functions | |
StringConfigProperty (const string &name, const string &comment, const string &def=string(""), const Values &values=Values()) | |
bool | normalizeValue (string &res) const |
virtual bool | checkValue (const string &propValue, string &error) const |
virtual string | getProperty (const ConfigNode &node, bool *isDefault=NULL) const |
Protected Member Functions | |
virtual Values | getValues () const |
The addition operator is defined for the aliases so that they can be constructed more easily.
Definition at line 169 of file SyncEvolutionConfig.h.
StringConfigProperty::StringConfigProperty | ( | const string & | name, | |
const string & | comment, | |||
const string & | def = string("") , |
|||
const Values & | values = Values() | |||
) | [inline] |
Definition at line 171 of file SyncEvolutionConfig.h.
virtual bool StringConfigProperty::checkValue | ( | const string & | propValue, | |
string & | error | |||
) | const [inline, virtual] |
This implementation accepts all values if no aliases are given, otherwise the value must be part of the aliases.
Reimplemented from ConfigProperty.
Definition at line 198 of file SyncEvolutionConfig.h.
References getValues().
virtual string StringConfigProperty::getProperty | ( | const ConfigNode & | node, | |
bool * | isDefault = NULL | |||
) | const [inline, virtual] |
isDefault | return true if the node had no value set and the default was returned instead |
Reimplemented from ConfigProperty.
Definition at line 236 of file SyncEvolutionConfig.h.
References normalizeValue().
virtual Values StringConfigProperty::getValues | ( | ) | const [inline, protected, virtual] |
Definition at line 243 of file SyncEvolutionConfig.h.
Referenced by checkValue(), and normalizeValue().
bool StringConfigProperty::normalizeValue | ( | string & | res | ) | const [inline] |
Definition at line 181 of file SyncEvolutionConfig.h.
References getValues().
Referenced by getProperty().