sc::KeyValValuestring Class Reference

Represents a std::string value. More...

#include <util/keyval/keyvalval.h>

Inheritance diagram for sc::KeyValValuestring:

Inheritance graph
[legend]

List of all members.

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


Detailed Description

Represents a std::string value.

This can convert the string to a variety of other types.


Member Function Documentation

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.


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

Generated at Sun Feb 22 10:13:08 2009 for MPQC 3.0.0-alpha using the documentation package Doxygen 1.5.6.
These pages are hosted on SourceForge.net