libyui  3.2.3
 All Classes Files Functions Variables Typedefs Enumerations Friends Pages
YPropertyValue Class Reference

Transport class for the value of simple properties. More...

#include <YProperty.h>

Public Member Functions

 YPropertyValue (const std::string &str)
 Constructor for string properties.
 
 YPropertyValue (const char *str)
 Constructor for const char * (string) properties.
 
 YPropertyValue (bool b)
 Constructor for bool properties.
 
 YPropertyValue (YInteger num)
 Constructor for numerical (YCP integer) properties.
 
 YPropertyValue (int num)
 Constructor for numerical (YCP integer) properties.
 
 YPropertyValue (YPropertyType type)
 
 YPropertyValue ()
 Default constructor.
 
 ~YPropertyValue ()
 Destructor.
 
YPropertyType type () const
 Returns the type of this property value. More...
 
std::string typeAsStr () const
 Returns the type of this property value as string.
 
std::string stringVal () const
 Methods to get the value of this property. More...
 
bool boolVal () const
 
YInteger integerVal () const
 

Detailed Description

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.

Member Function Documentation

std::string YPropertyValue::stringVal ( ) const
inline

Methods to get the value of this property.

Check with type() which one to use.

Definition at line 167 of file YProperty.h.

YPropertyType YPropertyValue::type ( ) const
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.


The documentation for this class was generated from the following files: