libyui  3.0.10
YPropertyValue Class Reference

#include <YProperty.h>

List of all members.

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

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.


Constructor & Destructor Documentation

YPropertyValue::YPropertyValue ( const std::string &  str) [inline]

Constructor for string properties.

Definition at line 111 of file YProperty.h.

YPropertyValue::YPropertyValue ( const char *  str) [inline]

Constructor for const char * (string) properties.

Definition at line 117 of file YProperty.h.

YPropertyValue::YPropertyValue ( bool  b) [inline, explicit]

Constructor for bool properties.

Definition at line 123 of file YProperty.h.

YPropertyValue::YPropertyValue ( YInteger  num) [inline, explicit]

Constructor for numerical (YCP integer) properties.

Definition at line 129 of file YProperty.h.

YPropertyValue::YPropertyValue ( int  num) [inline, explicit]

Constructor for numerical (YCP integer) properties.

Definition at line 135 of file YProperty.h.

Default constructor

Definition at line 144 of file YProperty.h.

Destructor.

Definition at line 49 of file YProperty.cc.


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.

std::string YPropertyValue::typeAsStr ( ) const [inline]

Returns the type of this property value as string.

Definition at line 161 of file YProperty.h.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations Friends