#include <YProperty.h>
Public Member Functions | |
YPropertyValue (const std::string &str) | |
YPropertyValue (const char *str) | |
YPropertyValue (bool b) | |
YPropertyValue (YInteger num) | |
YPropertyValue (int num) | |
YPropertyValue (YPropertyType type) | |
YPropertyValue () | |
~YPropertyValue () | |
bool | operator== (const YPropertyValue &other) const |
bool | operator!= (const YPropertyValue &other) const |
YPropertyType | type () const |
std::string | typeAsStr () const |
std::string | stringVal () const |
bool | boolVal () const |
YInteger | integerVal () const |
Transport class for the value of simple properties.
More complex properties (lists of items, tree descriptions, ...) have to be handled specifically someplace else, but most properties are of simple types and can be treated in similar ways.
|
inline |
Constructor for string properties.
|
inline |
Constructor for const char * (string) properties.
|
inlineexplicit |
Constructor for bool properties.
|
inlineexplicit |
Constructor for numerical (YCP integer) properties.
|
inlineexplicit |
Constructor for numerical (YCP integer) properties.
|
inline |
Default constructor
YPropertyValue::~YPropertyValue | ( | ) |
Destructor.
bool YPropertyValue::operator!= | ( | const YPropertyValue & | other | ) | const |
bool YPropertyValue::operator== | ( | const YPropertyValue & | other | ) | const |
Equality operator, can compare with another YPropertyValue.
YUIException | for incompatible property types |
|
inline |
Methods to get the value of this property. Check with type() which one to use.
|
inline |
Returns the type of this property value. Use this to determine which xyVal() method to use.
|
inline |
Returns the type of this property value as string.