In file ..\..\src\Pegasus\Common\CIMValue.h:

class PEGASUS_COMMON_LINKAGE CIMValue

The CIMValue class represents a value of any of the CIM data types (see CIMTypeh for a list of valid CIM data types).

Documentation

The CIMValue class represents a value of any of the CIM data types (see CIMTypeh for a list of valid CIM data types). This class encapsulates a union which holds the current value. The class also has a type field indicating the type of that value.

Inheritance:


Public Methods

[more] CIMValue ()
Constructor
[more] CIMValue (Boolean x)
Constructor
[more] CIMValue (Uint8 x)
Constructor
[more] CIMValue (Sint8 x)
Constructor
[more] CIMValue (Uint16 x)
Constructor
[more] CIMValue (Sint16 x)
Constructor
[more] CIMValue (Uint32 x)
Constructor
[more] CIMValue (Sint32 x)
Constructor
[more] CIMValue (Uint64 x)
Constructor
[more] CIMValue (Sint64 x)
Constructor
[more] CIMValue (Real32 x)
Constructor
[more] CIMValue (Real64 x)
Constructor
[more] CIMValue (const Char16& x)
Constructor
[more] CIMValue (const String& x)
Constructor
[more] CIMValue (const char* x)
Constructor
[more] CIMValue (const CIMDateTime& x)
Constructor
[more] CIMValue (const CIMReference& x)
Constructor
[more] CIMValue (const Array<Boolean>& x)
Constructor
[more] CIMValue (const Array<Uint8>& x)
Constructor
[more] CIMValue (const Array<Sint8>& x)
Constructor
[more] CIMValue (const Array<Uint16>& x)
Constructor
[more] CIMValue (const Array<Sint16>& x)
Constructor
[more] CIMValue (const Array<Uint32>& x)
Constructor
[more] CIMValue (const Array<Sint32>& x)
Constructor
[more] CIMValue (const Array<Uint64>& x)
Constructor
[more] CIMValue (const Array<Sint64>& x)
Constructor
[more] CIMValue (const Array<Real32>& x)
Constructor
[more] CIMValue (const Array<Real64>& x)
Constructor
[more] CIMValue (const Array<Char16>& x)
Constructor
[more] CIMValue (const Array<String>& x)
Constructor
[more] CIMValue (const Array<CIMDateTime>& x)
Constructor
[more] CIMValue (const CIMValue& x)
Constructor
[more] ~CIMValue ()
Destrustructor
[more]CIMValue& operator= (const CIMValue& x)
Operator =
[more]void assign (const CIMValue& x)
CIMMethod assign
[more]void clear ()
CIMMethod clear
[more]Boolean typeCompatible (const CIMValue& x) const
CIMMethod typeCompatible - Compares the types of two values.
[more]Boolean isArray () const
CIMMethod isArray - Determines if the value is an array
[more]Boolean isNull () const
Returns whether the CIMvalue object is null.
[more]Uint32 getArraySize () const
CIMMethod getArraySize
[more]void setNullValue (CIMType type, Boolean isArray, Uint32 arraySize = 0)
method setNullvalue - ATTN:
[more]void set (Boolean x)
method set - ATTN:
[more]void set (Uint8 x)
CIMMethod Set
[more]void get (Boolean& x) const
CIMMethod get - ATTN
[more]void toXml (Array<Sint8>& out) const
toXML - Converts a CIMValueObject to XML.
[more]void print (PEGASUS_STD(ostream) &o=PEGASUS_STD(cout)) const
CIMMethod print - Format and print the Value to std output stream
[more]void toMof (Array<Sint8>& out) const
toMof - Converts a CIMValueObject to Mof.
[more]String toString () const
toString - Converts the CIMvalue to a string

o CIMValue()
Constructor

o CIMValue(Boolean x)
Constructor

o CIMValue(Uint8 x)
Constructor

o CIMValue(Sint8 x)
Constructor

o CIMValue(Uint16 x)
Constructor

o CIMValue(Sint16 x)
Constructor

o CIMValue(Uint32 x)
Constructor

o CIMValue(Sint32 x)
Constructor

o CIMValue(Uint64 x)
Constructor

o CIMValue(Sint64 x)
Constructor

o CIMValue(Real32 x)
Constructor

o CIMValue(Real64 x)
Constructor

o CIMValue(const Char16& x)
Constructor

o CIMValue(const String& x)
Constructor

o CIMValue(const char* x)
Constructor

o CIMValue(const CIMDateTime& x)
Constructor

o CIMValue(const CIMReference& x)
Constructor

o CIMValue(const Array<Boolean>& x)
Constructor

o CIMValue(const Array<Uint8>& x)
Constructor

o CIMValue(const Array<Sint8>& x)
Constructor

o CIMValue(const Array<Uint16>& x)
Constructor

o CIMValue(const Array<Sint16>& x)
Constructor

o CIMValue(const Array<Uint32>& x)
Constructor

o CIMValue(const Array<Sint32>& x)
Constructor

o CIMValue(const Array<Uint64>& x)
Constructor

o CIMValue(const Array<Sint64>& x)
Constructor

o CIMValue(const Array<Real32>& x)
Constructor

o CIMValue(const Array<Real64>& x)
Constructor

o CIMValue(const Array<Char16>& x)
Constructor

o CIMValue(const Array<String>& x)
Constructor

o CIMValue(const Array<CIMDateTime>& x)
Constructor

o CIMValue(const CIMValue& x)
Constructor

o ~CIMValue()
Destrustructor

oCIMValue& operator=(const CIMValue& x)
Operator =

ovoid assign(const CIMValue& x)
CIMMethod assign

ovoid clear()
CIMMethod clear

oBoolean typeCompatible(const CIMValue& x) const
CIMMethod typeCompatible - Compares the types of two values.
Returns:
true if compatible.

oBoolean isArray() const
CIMMethod isArray - Determines if the value is an array
Returns:
TRUE if the value is an array

oBoolean isNull() const
Returns whether the CIMvalue object is null. Null is the specific condition where no value has yet been set into the value. If a CIMValue object is Null, any get on that object will create an exception.
Returns:
Returns True if the CIMValue object is Null

oUint32 getArraySize() const
CIMMethod getArraySize
Returns:
The number of entries in the array

ovoid setNullValue(CIMType type, Boolean isArray, Uint32 arraySize = 0)
method setNullvalue - ATTN:

ovoid set(Boolean x)
method set - ATTN:

ovoid set(Uint8 x)
CIMMethod Set

ovoid get(Boolean& x) const
CIMMethod get - ATTN

ovoid toXml(Array<Sint8>& out) const
toXML - Converts a CIMValueObject to XML. @out Sint8 Array to hold the XML representation
Returns:
Returns the XML representation of the CIMValue object in the input parameter out.

ovoid print(PEGASUS_STD(ostream) &o=PEGASUS_STD(cout)) const
CIMMethod print - Format and print the Value to std output stream
Returns:
None
Example:
CIMValue value(Boolean(true));
value.print();	   Prints "true"

ovoid toMof(Array<Sint8>& out) const
toMof - Converts a CIMValueObject to Mof. @out Sint8 Array to hold the Mof representation
Returns:
Returns the Mof representation of the CIMValue object in the input parameter out.

oString toString() const
toString - Converts the CIMvalue to a string
Returns:
- String output for CIMValue.
Example:
String test;
CIMValue value(Boolean(true));
test = value.toString();	   puts "true" into test


This class has no child classes.
Friends:
class CIMMethodRep
class CIMParameterRep
class CIMPropertyRep
class CIMQualifierRep
class CIMQualifierDeclRep
Boolean operator==(

Alphabetic index HTML hierarchy of classes or Java