#include <props.h>
Collaboration diagram for Dv::Util::Props::ConstValue:
Public Member Functions | |
const 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. | |
const 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. | |
const 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. | |
const 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. | |
const 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. | |
const 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. | |
const 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. | |
const 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 const std::string & () const throw (PropsException) | |
The conversion operators have a similar functionality as the Props::Value::operator>>() function members. | |
const std::string & | str () const throw (PropsException) |
Explicit "conversion" to std::string. | |
Private Member Functions | |
ConstValue (const Props &props, const std::string &key, const std::string *value) | |
ConstValue (const ConstValue &) | |
ConstValue & | operator= (const ConstValue &) |
Private Attributes | |
const Props & | props_ |
const std::string | key_ |
const std::string * | value_ |
Friends | |
std::ostream & | operator<< (std::ostream &, const Props::ConstValue &) |
Output operator needed to avoid ambiguity E.g. |
The difference with Props::Value is that there are no assignment operators (because the underlying Props object is constant.
Definition at line 198 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 std::string& conversion returns a reference, making examples such as the following efficient. int i(props["f"]); const std::string& huge_string(props["text"]); |
|
The conversion operators have a similar functionality as the Props::Value::operator>>() function members. Note how the std::string& conversion returns a reference, making examples such as the following efficient. int i(props["f"]); const std::string& huge_string(props["text"]); |
|
The conversion operators have a similar functionality as the Props::Value::operator>>() function members. Note how the std::string& conversion returns a reference, making examples such as the following efficient. int i(props["f"]); const std::string& huge_string(props["text"]); |
|
The conversion operators have a similar functionality as the Props::Value::operator>>() function members. Note how the std::string& conversion returns a reference, making examples such as the following efficient. int i(props["f"]); const std::string& huge_string(props["text"]); |
|
The conversion operators have a similar functionality as the Props::Value::operator>>() function members. Note how the std::string& conversion returns a reference, making examples such as the following efficient. int i(props["f"]); const std::string& huge_string(props["text"]); |
|
The conversion operators have a similar functionality as the Props::Value::operator>>() function members. Note how the std::string& conversion returns a reference, making examples such as the following efficient. int i(props["f"]); const std::string& huge_string(props["text"]); |
|
The conversion operators have a similar functionality as the Props::Value::operator>>() function members. Note how the std::string& conversion returns a reference, making examples such as the following efficient. int i(props["f"]); const std::string& huge_string(props["text"]); |
|
The conversion operators have a similar functionality as the Props::Value::operator>>() function members. Note how the std::string& conversion returns a reference, making examples such as the following efficient. int i(props["f"]); const 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);
|
|
|
|
Output operator needed to avoid ambiguity E.g.
cout << props["key"];
|
|
Definition at line 274 of file props.h. Referenced by ConstValue(). |
|
Definition at line 275 of file props.h. Referenced by ConstValue(). |
|
Definition at line 276 of file props.h. Referenced by ConstValue(). |
dvutil-0.13.15 | [30 December, 2004] |