#include <sbuild-parse-value.h>
Collaboration diagram for sbuild::parse_value:
Public Types | |
typedef parse_error | error |
Exception type. | |
Public Member Functions | |
parse_value (std::string const &value) | |
The constructor. | |
virtual | ~parse_value () |
The destructor. | |
template<typename T> | |
operator T (void) | |
Convert object into any type T. | |
Private Member Functions | |
bool | parse (bool &parsed_value) const |
Parse a boolean value. | |
bool | parse (std::string &parsed_value) const |
Parse a string value. | |
template<typename T> | |
bool | parse (T &parsed_value) const |
Parse a value of type T. | |
Private Attributes | |
std::string | value |
This is a wrapper around a string value, to convert it into any desired type.
Exception type.
parse_value::parse_value | ( | std::string const & | value | ) |
The constructor.
value | the value to parse. |
parse_value::~parse_value | ( | ) | [virtual] |
The destructor.
sbuild::parse_value::operator T | ( | void | ) | [inline] |
Convert object into any type T.
Here is the call graph for this function:
bool sbuild::parse_value::parse | ( | T & | parsed_value | ) | const [inline, private] |
Parse a value of type T.
parsed_value | the variable to store the parsed value. |
Here is the call graph for this function:
bool parse_value::parse | ( | std::string & | parsed_value | ) | const [private] |
Parse a string value.
parsed_value | the variable to store the parsed value. |
bool parse_value::parse | ( | bool & | parsed_value | ) | const [private] |
Parse a boolean value.
parsed_value | the variable to store the parsed value. |
std::string sbuild::parse_value::value [private] |