#include <props.h>
Collaboration diagram for Dv::Util::Props::Value:
Public Member Functions | |
Props & | operator>> (std::string &) const throw (PropsException) |
Props::Value::operator>>() can be used to set its reference parameter with the value associated with the Props::Value object. | |
Props & | operator>> (int &) const throw (PropsException) |
Props::Value::operator>>() can be used to set its reference parameter with the value associated with the Props::Value object. | |
Props & | operator>> (unsigned int &) const throw (PropsException) |
Props::Value::operator>>() can be used to set its reference parameter with the value associated with the Props::Value object. | |
Props & | operator>> (long &) const throw (PropsException) |
Props::Value::operator>>() can be used to set its reference parameter with the value associated with the Props::Value object. | |
Props & | operator>> (unsigned long &) const throw (PropsException) |
Props::Value::operator>>() can be used to set its reference parameter with the value associated with the Props::Value object. | |
Props & | operator>> (short &) const throw (PropsException) |
Props::Value::operator>>() can be used to set its reference parameter with the value associated with the Props::Value object. | |
Props & | operator>> (unsigned short &) const throw (PropsException) |
Props::Value::operator>>() can be used to set its reference parameter with the value associated with the Props::Value object. | |
Props & | operator>> (double &) const throw (PropsException) |
Props::Value::operator>>() can be used to set its reference parameter with the value associated with the Props::Value object. | |
operator int () const throw (PropsException) | |
The conversion operators have a similar functionality as the Props::Value::operator>>() function members. | |
operator long () const throw (PropsException) | |
The conversion operators have a similar functionality as the Props::Value::operator>>() function members. | |
operator short () const throw (PropsException) | |
The conversion operators have a similar functionality as the Props::Value::operator>>() function members. | |
operator unsigned int () const throw (PropsException) | |
The conversion operators have a similar functionality as the Props::Value::operator>>() function members. | |
operator unsigned long () const throw (PropsException) | |
The conversion operators have a similar functionality as the Props::Value::operator>>() function members. | |
operator unsigned short () const throw (PropsException) | |
The conversion operators have a similar functionality as the Props::Value::operator>>() function members. | |
operator double () const throw (PropsException) | |
The conversion operators have a similar functionality as the Props::Value::operator>>() function members. | |
operator std::string & () throw (PropsException) | |
The conversion operators have a similar functionality as the Props::Value::operator>>() function members. | |
std::string & | str () throw (PropsException) |
Explicit "conversion" to std::string. | |
Props & | operator= (int) |
Props::Value::operator=() sets the value associated with the key corresponding to Props::Value. | |
Props & | operator= (long) |
Props::Value::operator=() sets the value associated with the key corresponding to Props::Value. | |
Props & | operator= (short) |
Props::Value::operator=() sets the value associated with the key corresponding to Props::Value. | |
Props & | operator= (unsigned int) |
Props::Value::operator=() sets the value associated with the key corresponding to Props::Value. | |
Props & | operator= (unsigned long) |
Props::Value::operator=() sets the value associated with the key corresponding to Props::Value. | |
Props & | operator= (unsigned short) |
Props::Value::operator=() sets the value associated with the key corresponding to Props::Value. | |
Props & | operator= (const double &) |
Props::Value::operator=() sets the value associated with the key corresponding to Props::Value. | |
Props & | operator= (const std::string &) |
Props::Value::operator=() sets the value associated with the key corresponding to Props::Value. | |
Private Member Functions | |
Value (Props &props, const std::string &key, std::string *value) | |
Value (const Value &) | |
Value & | operator= (const Value &) |
Private Attributes | |
Props & | props_ |
const std::string | key_ |
std::string * | value_ |
Friends | |
std::ostream & | operator<< (std::ostream &, const Props::Value &) |
Output operator needed to avoid ambiguity E.g. |
A non-const access with Props::operator[] returns an object of this type. It supports several convertors and assignment operations to support code like
props["abc"] = 32;
Definition at line 94 of file props.h.
|
|
|
|
Props::Value::operator>>() can be used to set its reference parameter with the value associated with the Props::Value object. It will throw an exception, if there is no such value. |
|
Props::Value::operator>>() can be used to set its reference parameter with the value associated with the Props::Value object. It will throw an exception, if there is no such value. |
|
Props::Value::operator>>() can be used to set its reference parameter with the value associated with the Props::Value object. It will throw an exception, if there is no such value. |
|
Props::Value::operator>>() can be used to set its reference parameter with the value associated with the Props::Value object. It will throw an exception, if there is no such value. |
|
Props::Value::operator>>() can be used to set its reference parameter with the value associated with the Props::Value object. It will throw an exception, if there is no such value. |
|
Props::Value::operator>>() can be used to set its reference parameter with the value associated with the Props::Value object. It will throw an exception, if there is no such value. |
|
Props::Value::operator>>() can be used to set its reference parameter with the value associated with the Props::Value object. It will throw an exception, if there is no such value. |
|
Props::Value::operator>>() can be used to set its reference parameter with the value associated with the Props::Value object. It will throw an exception, if there is no such value. |
|
The conversion operators have a similar functionality as the Props::Value::operator>>() function members. Note how the string& conversion returns a reference, making examples such as the following efficient. int i(props["f"]); std::string& huge_string(props["text"]); |
|
The conversion operators have a similar functionality as the Props::Value::operator>>() function members. Note how the string& conversion returns a reference, making examples such as the following efficient. int i(props["f"]); std::string& huge_string(props["text"]); |
|
The conversion operators have a similar functionality as the Props::Value::operator>>() function members. Note how the string& conversion returns a reference, making examples such as the following efficient. int i(props["f"]); std::string& huge_string(props["text"]); |
|
The conversion operators have a similar functionality as the Props::Value::operator>>() function members. Note how the string& conversion returns a reference, making examples such as the following efficient. int i(props["f"]); std::string& huge_string(props["text"]); |
|
The conversion operators have a similar functionality as the Props::Value::operator>>() function members. Note how the string& conversion returns a reference, making examples such as the following efficient. int i(props["f"]); std::string& huge_string(props["text"]); |
|
The conversion operators have a similar functionality as the Props::Value::operator>>() function members. Note how the string& conversion returns a reference, making examples such as the following efficient. int i(props["f"]); std::string& huge_string(props["text"]); |
|
The conversion operators have a similar functionality as the Props::Value::operator>>() function members. Note how the string& conversion returns a reference, making examples such as the following efficient. int i(props["f"]); std::string& huge_string(props["text"]); |
|
The conversion operators have a similar functionality as the Props::Value::operator>>() function members. Note how the string& conversion returns a reference, making examples such as the following efficient. int i(props["f"]); std::string& huge_string(props["text"]); |
|
Explicit "conversion" to std::string. This function is handy in cases such as the following: std::string s; s = props[key]; std::string::operator=(const char); std::string::operator=(const std::string);
|
|
Props::Value::operator=() sets the value associated with the key corresponding to Props::Value. Non-string arguments are first converted to strings. |
|
Props::Value::operator=() sets the value associated with the key corresponding to Props::Value. Non-string arguments are first converted to strings. |
|
Props::Value::operator=() sets the value associated with the key corresponding to Props::Value. Non-string arguments are first converted to strings. |
|
Props::Value::operator=() sets the value associated with the key corresponding to Props::Value. Non-string arguments are first converted to strings. |
|
Props::Value::operator=() sets the value associated with the key corresponding to Props::Value. Non-string arguments are first converted to strings. |
|
Props::Value::operator=() sets the value associated with the key corresponding to Props::Value. Non-string arguments are first converted to strings. |
|
Props::Value::operator=() sets the value associated with the key corresponding to Props::Value. Non-string arguments are first converted to strings. |
|
Props::Value::operator=() sets the value associated with the key corresponding to Props::Value. Non-string arguments are first converted to strings. |
|
|
|
Output operator needed to avoid ambiguity E.g.
cout << props["key"];
|
|
Definition at line 187 of file props.h. Referenced by Value(). |
|
Definition at line 188 of file props.h. Referenced by Value(). |
|
Definition at line 189 of file props.h. Referenced by Value(). |
dvutil-0.13.15 | [30 December, 2004] |