#include <util/keyval/keyvalval.h>

Public Member Functions | |
| KeyValValuestring (const std::string &) | |
| KeyValValuestring (const KeyValValuestring &) | |
| KeyValValue::KeyValValueError | doublevalue (double &) const |
| Converts the string to double. | |
| KeyValValue::KeyValValueError | booleanvalue (int &) const |
| Converts the string to boolean. | |
| KeyValValue::KeyValValueError | floatvalue (float &) const |
| Converts the string to float. | |
| KeyValValue::KeyValValueError | charvalue (char &) const |
| Converts the string to char. | |
| KeyValValue::KeyValValueError | intvalue (int &) const |
| Converts the string to int. | |
| KeyValValue::KeyValValueError | longvalue (long &) const |
| Converts the string to long. | |
| KeyValValue::KeyValValueError | sizevalue (size_t &) const |
| Converts the string to size_t. | |
|
DEPRECATED KeyValValue::KeyValValueError | pcharvalue (const char *&) const |
| Converts the string to a pointer to char (deprecated). | |
| KeyValValue::KeyValValueError | stringvalue (std::string &) const |
| void | print (std::ostream &o=ExEnv::out0()) const |
This can convert the string to a variety of other types.
| KeyValValue::KeyValValueError sc::KeyValValuestring::booleanvalue | ( | int & | ) | const [virtual] |
Converts the string to boolean.
True can be given as 1, true, or yes. False can be given as 0, false, or no.
Reimplemented from sc::KeyValValue.
| KeyValValue::KeyValValueError sc::KeyValValuestring::sizevalue | ( | size_t & | ) | const [virtual] |
Converts the string to size_t.
Various suffices are recognized: KB, MB, GB, KIB, MIB, and GIB.
Reimplemented from sc::KeyValValue.