libyui
2.42.5
|
#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 () | |
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.
Definition at line 104 of file YProperty.h.
|
inline |
Constructor for string properties.
Definition at line 111 of file YProperty.h.
|
inline |
Constructor for const char * (string) properties.
Definition at line 117 of file YProperty.h.
|
inlineexplicit |
Constructor for bool properties.
Definition at line 123 of file YProperty.h.
|
inlineexplicit |
Constructor for numerical (YCP integer) properties.
Definition at line 129 of file YProperty.h.
|
inlineexplicit |
Constructor for numerical (YCP integer) properties.
Definition at line 135 of file YProperty.h.
|
inline |
Default constructor
Definition at line 144 of file YProperty.h.
YPropertyValue::~YPropertyValue | ( | ) |
Destructor.
Definition at line 49 of file YProperty.cc.
|
inline |
Methods to get the value of this property. Check with type() which one to use.
Definition at line 167 of file YProperty.h.
|
inline |
Returns the type of this property value. Use this to determine which xyVal() method to use.
Definition at line 156 of file YProperty.h.
|
inline |
Returns the type of this property value as string.
Definition at line 161 of file YProperty.h.