#include <props.h>

Public Member Functions | |
| bool | defined () const |
| Reference (const std::string &key, Props &props) | |
| Reference (const std::string &key, const Props &props) | |
| template<typename T > | |
| T | get () const |
| template<typename T > | |
| T | get (const T &default_value) const |
| std::string | get (const char *default_value) const |
| std::string | str () const |
| template<typename T > | |
| operator T () const | |
| operator std::string & () | |
| Return a reference to the raw string content associated with a key. | |
| operator const std::string & () const | |
| template<typename T > | |
| Reference & | operator= (const T &t) |
| template<typename T > | |
| Reference & | operator+= (const T &t) |
| template<typename T > | |
| Reference & | append (const T &t, const std::string &separator) |
| Reference & | erase () |
Private Attributes | |
| std::string | key_ |
| Props & | props_ |
Friends | |
| class | Props |
| std::ostream & | operator<< (std::ostream &os, const Reference &i) |
| template<typename T > | |
| const Props & | operator>> (const Reference &r, T &t) |
Definition at line 47 of file props.h.
| Dv::Props::Reference::Reference | ( | const std::string & | key, | |
| Props & | props | |||
| ) | [inline] |
| Dv::Props::Reference::Reference | ( | const std::string & | key, | |
| const Props & | props | |||
| ) | [inline] |
| bool Dv::Props::Reference::defined | ( | ) | const [inline] |
Definition at line 49 of file props.h.
References Dv::StringMap< T >::find(), key_, and props_.
| T Dv::Props::Reference::get | ( | ) | const [inline] |
Definition at line 55 of file props.h.
References Dv::StringMap< T >::find(), key_, and props_.
| T Dv::Props::Reference::get | ( | const T & | default_value | ) | const [inline] |
Definition at line 63 of file props.h.
References Dv::StringMap< T >::find(), key_, and props_.
| std::string Dv::Props::Reference::get | ( | const char * | default_value | ) | const [inline] |
Definition at line 71 of file props.h.
References Dv::StringMap< T >::find(), key_, and props_.
| Dv::Props::Reference::operator T | ( | ) | const [inline] |
| Dv::Props::Reference::operator std::string & | ( | ) | [inline] |
Return a reference to the raw string content associated with a key.
Definition at line 89 of file props.h.
References key_, Dv::StringMap< T >::map_, and props_.
| Dv::Props::Reference::operator const std::string & | ( | ) | const [inline] |
Definition at line 93 of file props.h.
References key_, Dv::StringMap< T >::map_, and props_.
| Reference& Dv::Props::Reference::operator= | ( | const T & | t | ) | [inline] |
Definition at line 101 of file props.h.
References Dv::tostring().
| Reference& Dv::Props::Reference::operator+= | ( | const T & | t | ) | [inline] |
| Reference& Dv::Props::Reference::append | ( | const T & | t, | |
| const std::string & | separator | |||
| ) | [inline] |
Definition at line 107 of file props.h.
References Dv::tostring().
| Reference& Dv::Props::Reference::erase | ( | ) | [inline] |
| std::ostream& operator<< | ( | std::ostream & | os, | |
| const Reference & | i | |||
| ) | [friend] |
std::string Dv::Props::Reference::key_ [private] |
Definition at line 131 of file props.h.
Referenced by defined(), get(), operator const std::string &(), and operator std::string &().
Props& Dv::Props::Reference::props_ [private] |
Definition at line 132 of file props.h.
Referenced by defined(), get(), operator const std::string &(), and operator std::string &().
| dvutil-1.0.10 | [ 5 December, 2009] |