CIMValue Class Reference

#include <CIMValue.h>

List of all members.

Public Member Functions

 CIMValue ()
 CIMValue (CIMType type, Boolean isArray, Uint32 arraySize=0)
 CIMValue (Boolean x)
 CIMValue (Uint8 x)
 CIMValue (Sint8 x)
 CIMValue (Uint16 x)
 CIMValue (Sint16 x)
 CIMValue (Uint32 x)
 CIMValue (Sint32 x)
 CIMValue (Uint64 x)
 CIMValue (Sint64 x)
 CIMValue (Real32 x)
 CIMValue (Real64 x)
 CIMValue (const Char16 &x)
 CIMValue (const String &x)
 CIMValue (const CIMDateTime &x)
 CIMValue (const CIMObjectPath &x)
 CIMValue (const CIMObject &x)
 CIMValue (const CIMInstance &x)
 CIMValue (const Array< Boolean > &x)
 CIMValue (const Array< Uint8 > &x)
 CIMValue (const Array< Sint8 > &x)
 CIMValue (const Array< Uint16 > &x)
 CIMValue (const Array< Sint16 > &x)
 CIMValue (const Array< Uint32 > &x)
 CIMValue (const Array< Sint32 > &x)
 CIMValue (const Array< Uint64 > &x)
 CIMValue (const Array< Sint64 > &x)
 CIMValue (const Array< Real32 > &x)
 CIMValue (const Array< Real64 > &x)
 CIMValue (const Array< Char16 > &x)
 CIMValue (const Array< String > &x)
 CIMValue (const Array< CIMDateTime > &x)
 CIMValue (const Array< CIMObjectPath > &x)
 CIMValue (const Array< CIMObject > &x)
 CIMValue (const Array< CIMInstance > &x)
 CIMValue (const CIMValue &x)
 ~CIMValue ()
CIMValueoperator= (const CIMValue &x)
void assign (const CIMValue &x)
void clear ()
Boolean typeCompatible (const CIMValue &x) const
Boolean isArray () const
Boolean isNull () const
Uint32 getArraySize () const
CIMType getType () const
void setNullValue (CIMType type, Boolean isArray, Uint32 arraySize=0)
void set (Boolean x)
void set (Uint8 x)
void set (Sint8 x)
void set (Uint16 x)
void set (Sint16 x)
void set (Uint32 x)
void set (Sint32 x)
void set (Uint64 x)
void set (Sint64 x)
void set (Real32 x)
void set (Real64 x)
void set (const Char16 &x)
void set (const String &x)
void set (const CIMDateTime &x)
void set (const CIMObjectPath &x)
void set (const CIMObject &x)
void set (const CIMInstance &x)
void set (const Array< Boolean > &x)
void set (const Array< Uint8 > &x)
void set (const Array< Sint8 > &x)
void set (const Array< Uint16 > &x)
void set (const Array< Sint16 > &x)
void set (const Array< Uint32 > &x)
void set (const Array< Sint32 > &x)
void set (const Array< Uint64 > &x)
void set (const Array< Sint64 > &x)
void set (const Array< Real32 > &x)
void set (const Array< Real64 > &x)
void set (const Array< Char16 > &x)
void set (const Array< String > &x)
void set (const Array< CIMDateTime > &x)
void set (const Array< CIMObjectPath > &x)
void set (const Array< CIMObject > &x)
void set (const Array< CIMInstance > &x)
void get (Boolean &x) const
void get (Uint8 &x) const
void get (Sint8 &x) const
void get (Uint16 &x) const
void get (Sint16 &x) const
void get (Uint32 &x) const
void get (Sint32 &x) const
void get (Uint64 &x) const
void get (Sint64 &x) const
void get (Real32 &x) const
void get (Real64 &x) const
void get (Char16 &x) const
void get (String &x) const
void get (CIMDateTime &x) const
void get (CIMObjectPath &x) const
void get (CIMObject &x) const
void get (CIMInstance &x) const
void get (Array< Boolean > &x) const
void get (Array< Uint8 > &x) const
void get (Array< Sint8 > &x) const
void get (Array< Uint16 > &x) const
void get (Array< Sint16 > &x) const
void get (Array< Uint32 > &x) const
void get (Array< Sint32 > &x) const
void get (Array< Uint64 > &x) const
void get (Array< Sint64 > &x) const
void get (Array< Real32 > &x) const
void get (Array< Real64 > &x) const
void get (Array< Char16 > &x) const
void get (Array< String > &x) const
void get (Array< CIMDateTime > &x) const
void get (Array< CIMObjectPath > &x) const
void get (Array< CIMObject > &x) const
void get (Array< CIMInstance > &x) const
Boolean equal (const CIMValue &x) const
String toString () const


Detailed Description

The CIMValue class represents a value of any of the CIM data types. This class encapsulates a union which holds value of any CIMType. A type field indicates the type of the value.


Constructor & Destructor Documentation

CIMValue::CIMValue (  ) 

Constructs a null CIMValue with type Boolean and isArray=false.

CIMValue::CIMValue ( CIMType  type,
Boolean  isArray,
Uint32  arraySize = 0 
)

Constructs a null CIMValue object with the specified type and array indicator.

Parameters:
type The CIMType of the value
isArray A Boolean indicating whether the value is of array type
arraySize An integer specifying the size of the array, if the CIMValue is for an array of a fixed size. This value is ignored if the isArray argument is false.

CIMValue::CIMValue ( Boolean  x  ) 

Constructs a CIMValue with the specified value and inferred type.

Parameters:
x The Boolean value to assign

CIMValue::CIMValue ( Uint8  x  ) 

Constructs a CIMValue with the specified value and inferred type.

Parameters:
x The Uint8 value to assign

CIMValue::CIMValue ( Sint8  x  ) 

Constructs a CIMValue with the specified value and inferred type.

Parameters:
x The Sint8 value to assign

CIMValue::CIMValue ( Uint16  x  ) 

Constructs a CIMValue with the specified value and inferred type.

Parameters:
x The Uint16 value to assign

CIMValue::CIMValue ( Sint16  x  ) 

Constructs a CIMValue with the specified value and inferred type.

Parameters:
x The Sint16 value to assign

CIMValue::CIMValue ( Uint32  x  ) 

Constructs a CIMValue with the specified value and inferred type.

Parameters:
x The Uint32 value to assign

CIMValue::CIMValue ( Sint32  x  ) 

Constructs a CIMValue with the specified value and inferred type.

Parameters:
x The Sint32 value to assign

CIMValue::CIMValue ( Uint64  x  ) 

Constructs a CIMValue with the specified value and inferred type.

Parameters:
x The Uint64 value to assign

CIMValue::CIMValue ( Sint64  x  ) 

Constructs a CIMValue with the specified value and inferred type.

Parameters:
x The Sint64 value to assign

CIMValue::CIMValue ( Real32  x  ) 

Constructs a CIMValue with the specified value and inferred type.

Parameters:
x The Real32 value to assign

CIMValue::CIMValue ( Real64  x  ) 

Constructs a CIMValue with the specified value and inferred type.

Parameters:
x The Real64 value to assign

CIMValue::CIMValue ( const Char16 x  ) 

Constructs a CIMValue with the specified value and inferred type.

Parameters:
x The Char16 value to assign

CIMValue::CIMValue ( const String x  ) 

Constructs a CIMValue with the specified value and inferred type.

Parameters:
x The String value to assign

CIMValue::CIMValue ( const CIMDateTime x  ) 

Constructs a CIMValue with the specified value and inferred type.

Parameters:
x The CIMDateTime value to assign

CIMValue::CIMValue ( const CIMObjectPath x  ) 

Constructs a CIMValue with the specified value and inferred type.

Parameters:
x The CIMObjectPath value to assign

CIMValue::CIMValue ( const CIMObject x  ) 

Constructs a CIMValue with the specified value and inferred type. Note: The CIMObject argument is cloned to prevent subsequent modification through the shared representation model.

Parameters:
x The CIMObject value to assign
Exceptions:
UninitializedObjectException If the CIMObject is uninitialized.

CIMValue::CIMValue ( const CIMInstance x  ) 

Constructs a CIMValue with the specified value and inferred type. Note: The CIMInstance argument is cloned to prevent subsequent modification through the shared representation model.

Parameters:
x The CIMInstance value to assign
Exceptions:
UninitializedObjectException If the CIMInstance is uninitialized.

CIMValue::CIMValue ( const Array< Boolean > &  x  ) 

Constructs a CIMValue with the specified value and inferred type.

Parameters:
x The Boolean Array value to assign

CIMValue::CIMValue ( const Array< Uint8 > &  x  ) 

Constructs a CIMValue with the specified value and inferred type.

Parameters:
x The Uint8 Array value to assign

CIMValue::CIMValue ( const Array< Sint8 > &  x  ) 

Constructs a CIMValue with the specified value and inferred type.

Parameters:
x The Sint8 Array value to assign

CIMValue::CIMValue ( const Array< Uint16 > &  x  ) 

Constructs a CIMValue with the specified value and inferred type.

Parameters:
x The Uint16 Array value to assign

CIMValue::CIMValue ( const Array< Sint16 > &  x  ) 

Constructs a CIMValue with the specified value and inferred type.

Parameters:
x The Sint16 Array value to assign

CIMValue::CIMValue ( const Array< Uint32 > &  x  ) 

Constructs a CIMValue with the specified value and inferred type.

Parameters:
x The Uint32 Array value to assign

CIMValue::CIMValue ( const Array< Sint32 > &  x  ) 

Constructs a CIMValue with the specified value and inferred type.

Parameters:
x The Sint32 Array value to assign

CIMValue::CIMValue ( const Array< Uint64 > &  x  ) 

Constructs a CIMValue with the specified value and inferred type.

Parameters:
x The Uint64 Array value to assign

CIMValue::CIMValue ( const Array< Sint64 > &  x  ) 

Constructs a CIMValue with the specified value and inferred type.

Parameters:
x The Sint64 Array value to assign

CIMValue::CIMValue ( const Array< Real32 > &  x  ) 

Constructs a CIMValue with the specified value and inferred type.

Parameters:
x The Real32 Array value to assign

CIMValue::CIMValue ( const Array< Real64 > &  x  ) 

Constructs a CIMValue with the specified value and inferred type.

Parameters:
x The Real64 Array value to assign

CIMValue::CIMValue ( const Array< Char16 > &  x  ) 

Constructs a CIMValue with the specified value and inferred type.

Parameters:
x The Char16 Array value to assign

CIMValue::CIMValue ( const Array< String > &  x  ) 

Constructs a CIMValue with the specified value and inferred type.

Parameters:
x The String Array value to assign

CIMValue::CIMValue ( const Array< CIMDateTime > &  x  ) 

Constructs a CIMValue with the specified value and inferred type.

Parameters:
x The CIMDateTime Array value to assign

CIMValue::CIMValue ( const Array< CIMObjectPath > &  x  ) 

Constructs a CIMValue with the specified value and inferred type.

Parameters:
x The CIMObjectPath Array value to assign

CIMValue::CIMValue ( const Array< CIMObject > &  x  ) 

Constructs a CIMValue with the specified value and inferred type. Note: The CIMObjects in the Array argument are cloned to prevent subsequent modification through the shared representation model.

Parameters:
x The CIMObject Array value to assign
Exceptions:
UninitializedObjectException If any of the CIMObjects in the Array are uninitialized.

CIMValue::CIMValue ( const Array< CIMInstance > &  x  ) 

Constructs a CIMValue with the specified value and inferred type. Note: The CIMInstances in the Array argument are cloned to prevent subsequent modification through the shared representation model.

Parameters:
x The CIMInstance Array value to assign
Exceptions:
UninitializedObjectException If any of the CIMInstances in the Array are uninitialized.

CIMValue::CIMValue ( const CIMValue x  ) 

Constructs a CIMValue by copying another CIMValue object. Note: If the specified CIMValue contains CIMObject or CIMInstance objects, they are cloned to prevent subsequent modification through the shared representation model.

Parameters:
x The CIMValue object to copy

CIMValue::~CIMValue (  ) 

Destructs a CIMValue object.


Member Function Documentation

void CIMValue::assign ( const CIMValue x  ) 

Assigns the value from a specified CIMValue object. Note: If the specified CIMValue contains CIMObject or CIMInstance objects, they are cloned to prevent subsequent modification through the shared representation model.

Parameters:
x The CIMValue object to copy

void CIMValue::clear (  ) 

Resets to a null value with type Boolean and isArray=false.

Boolean CIMValue::equal ( const CIMValue x  )  const

Compares with another CIMValue object for equality.

Parameters:
x The CIMValue with which to compare
Returns:
A Boolean indicating whether they are identical in type, array attributes, and value.

void CIMValue::get ( Array< CIMInstance > &  x  )  const

Gets the value of the CIMValue. The caller should first verify that the value is of the expected type and is not null. The behavior is undefined for null values.

Parameters:
x Output CIMInstance Array into which the value is stored.
Exceptions:
TypeMismatchException If the value type does not match the output parameter.

void CIMValue::get ( Array< CIMObject > &  x  )  const

Gets the value of the CIMValue. The caller should first verify that the value is of the expected type and is not null. The behavior is undefined for null values.

Parameters:
x Output CIMObject Array into which the value is stored.
Exceptions:
TypeMismatchException If the value type does not match the output parameter.

void CIMValue::get ( Array< CIMObjectPath > &  x  )  const

Gets the value of the CIMValue. The caller should first verify that the value is of the expected type and is not null. The behavior is undefined for null values.

Parameters:
x Output CIMObjectPath Array into which the value is stored.
Exceptions:
TypeMismatchException If the value type does not match the output parameter.

void CIMValue::get ( Array< CIMDateTime > &  x  )  const

Gets the value of the CIMValue. The caller should first verify that the value is of the expected type and is not null. The behavior is undefined for null values.

Parameters:
x Output CIMDateTime Array into which the value is stored.
Exceptions:
TypeMismatchException If the value type does not match the output parameter.

void CIMValue::get ( Array< String > &  x  )  const

Gets the value of the CIMValue. The caller should first verify that the value is of the expected type and is not null. The behavior is undefined for null values.

Parameters:
x Output String Array into which the value is stored.
Exceptions:
TypeMismatchException If the value type does not match the output parameter.

void CIMValue::get ( Array< Char16 > &  x  )  const

Gets the value of the CIMValue. The caller should first verify that the value is of the expected type and is not null. The behavior is undefined for null values.

Parameters:
x Output Char16 Array into which the value is stored.
Exceptions:
TypeMismatchException If the value type does not match the output parameter.

void CIMValue::get ( Array< Real64 > &  x  )  const

Gets the value of the CIMValue. The caller should first verify that the value is of the expected type and is not null. The behavior is undefined for null values.

Parameters:
x Output Real64 Array into which the value is stored.
Exceptions:
TypeMismatchException If the value type does not match the output parameter.

void CIMValue::get ( Array< Real32 > &  x  )  const

Gets the value of the CIMValue. The caller should first verify that the value is of the expected type and is not null. The behavior is undefined for null values.

Parameters:
x Output Real32 Array into which the value is stored.
Exceptions:
TypeMismatchException If the value type does not match the output parameter.

void CIMValue::get ( Array< Sint64 > &  x  )  const

Gets the value of the CIMValue. The caller should first verify that the value is of the expected type and is not null. The behavior is undefined for null values.

Parameters:
x Output Sint64 Array into which the value is stored.
Exceptions:
TypeMismatchException If the value type does not match the output parameter.

void CIMValue::get ( Array< Uint64 > &  x  )  const

Gets the value of the CIMValue. The caller should first verify that the value is of the expected type and is not null. The behavior is undefined for null values.

Parameters:
x Output Uint64 Array into which the value is stored.
Exceptions:
TypeMismatchException If the value type does not match the output parameter.

void CIMValue::get ( Array< Sint32 > &  x  )  const

Gets the value of the CIMValue. The caller should first verify that the value is of the expected type and is not null. The behavior is undefined for null values.

Parameters:
x Output Sint32 Array into which the value is stored.
Exceptions:
TypeMismatchException If the value type does not match the output parameter.

void CIMValue::get ( Array< Uint32 > &  x  )  const

Gets the value of the CIMValue. The caller should first verify that the value is of the expected type and is not null. The behavior is undefined for null values.

Parameters:
x Output Uint32 Array into which the value is stored.
Exceptions:
TypeMismatchException If the value type does not match the output parameter.

void CIMValue::get ( Array< Sint16 > &  x  )  const

Gets the value of the CIMValue. The caller should first verify that the value is of the expected type and is not null. The behavior is undefined for null values.

Parameters:
x Output Sint16 Array into which the value is stored.
Exceptions:
TypeMismatchException If the value type does not match the output parameter.

void CIMValue::get ( Array< Uint16 > &  x  )  const

Gets the value of the CIMValue. The caller should first verify that the value is of the expected type and is not null. The behavior is undefined for null values.

Parameters:
x Output Uint16 Array into which the value is stored.
Exceptions:
TypeMismatchException If the value type does not match the output parameter.

void CIMValue::get ( Array< Sint8 > &  x  )  const

Gets the value of the CIMValue. The caller should first verify that the value is of the expected type and is not null. The behavior is undefined for null values.

Parameters:
x Output Sint8 Array into which the value is stored.
Exceptions:
TypeMismatchException If the value type does not match the output parameter.

void CIMValue::get ( Array< Uint8 > &  x  )  const

Gets the value of the CIMValue. The caller should first verify that the value is of the expected type and is not null. The behavior is undefined for null values.

Parameters:
x Output Uint8 Array into which the value is stored.
Exceptions:
TypeMismatchException If the value type does not match the output parameter.

void CIMValue::get ( Array< Boolean > &  x  )  const

Gets the value of the CIMValue. The caller should first verify that the value is of the expected type and is not null. The behavior is undefined for null values.

Parameters:
x Output Boolean Array into which the value is stored.
Exceptions:
TypeMismatchException If the value type does not match the output parameter.

void CIMValue::get ( CIMInstance x  )  const

Gets the value of the CIMValue. The caller should first verify that the value is of the expected type and is not null. The behavior is undefined for null values.

Parameters:
x Output CIMInstance into which the value is stored.
Exceptions:
TypeMismatchException If the value type does not match the output parameter.

void CIMValue::get ( CIMObject x  )  const

Gets the value of the CIMValue. The caller should first verify that the value is of the expected type and is not null. The behavior is undefined for null values.

Parameters:
x Output CIMObject into which the value is stored.
Exceptions:
TypeMismatchException If the value type does not match the output parameter.

void CIMValue::get ( CIMObjectPath x  )  const

Gets the value of the CIMValue. The caller should first verify that the value is of the expected type and is not null. The behavior is undefined for null values.

Parameters:
x Output CIMObjectPath into which the value is stored.
Exceptions:
TypeMismatchException If the value type does not match the output parameter.

void CIMValue::get ( CIMDateTime x  )  const

Gets the value of the CIMValue. The caller should first verify that the value is of the expected type and is not null. The behavior is undefined for null values.

Parameters:
x Output CIMDateTime into which the value is stored.
Exceptions:
TypeMismatchException If the value type does not match the output parameter.

void CIMValue::get ( String x  )  const

Gets the value of the CIMValue. The caller should first verify that the value is of the expected type and is not null. The behavior is undefined for null values.

Parameters:
x Output String into which the value is stored.
Exceptions:
TypeMismatchException If the value type does not match the output parameter.

void CIMValue::get ( Char16 x  )  const

Gets the value of the CIMValue. The caller should first verify that the value is of the expected type and is not null. The behavior is undefined for null values.

Parameters:
x Output Char16 into which the value is stored.
Exceptions:
TypeMismatchException If the value type does not match the output parameter.

void CIMValue::get ( Real64 &  x  )  const

Gets the value of the CIMValue. The caller should first verify that the value is of the expected type and is not null. The behavior is undefined for null values.

Parameters:
x Output Real64 into which the value is stored.
Exceptions:
TypeMismatchException If the value type does not match the output parameter.

void CIMValue::get ( Real32 &  x  )  const

Gets the value of the CIMValue. The caller should first verify that the value is of the expected type and is not null. The behavior is undefined for null values.

Parameters:
x Output Real32 into which the value is stored.
Exceptions:
TypeMismatchException If the value type does not match the output parameter.

void CIMValue::get ( Sint64 &  x  )  const

Gets the value of the CIMValue. The caller should first verify that the value is of the expected type and is not null. The behavior is undefined for null values.

Parameters:
x Output Sint64 into which the value is stored.
Exceptions:
TypeMismatchException If the value type does not match the output parameter.

void CIMValue::get ( Uint64 &  x  )  const

Gets the value of the CIMValue. The caller should first verify that the value is of the expected type and is not null. The behavior is undefined for null values.

Parameters:
x Output Uint64 into which the value is stored.
Exceptions:
TypeMismatchException If the value type does not match the output parameter.

void CIMValue::get ( Sint32 &  x  )  const

Gets the value of the CIMValue. The caller should first verify that the value is of the expected type and is not null. The behavior is undefined for null values.

Parameters:
x Output Sint32 into which the value is stored.
Exceptions:
TypeMismatchException If the value type does not match the output parameter.

void CIMValue::get ( Uint32 &  x  )  const

Gets the value of the CIMValue. The caller should first verify that the value is of the expected type and is not null. The behavior is undefined for null values.

            Uint32 v;
            CIMValue value = property.getValue();
            if ((value.getType() == CIMTYPE_UINT32) && (!value.isNull()))
                value.get(v);
        
Parameters:
x Output Uint32 into which the value is stored.
Exceptions:
TypeMismatchException If the value type does not match the output parameter.

void CIMValue::get ( Sint16 &  x  )  const

Gets the value of the CIMValue. The caller should first verify that the value is of the expected type and is not null. The behavior is undefined for null values.

Parameters:
x Output Sint16 into which the value is stored.
Exceptions:
TypeMismatchException If the value type does not match the output parameter.

void CIMValue::get ( Uint16 &  x  )  const

Gets the value of the CIMValue. The caller should first verify that the value is of the expected type and is not null. The behavior is undefined for null values.

Parameters:
x Output Uint16 into which the value is stored.
Exceptions:
TypeMismatchException If the value type does not match the output parameter.

void CIMValue::get ( Sint8 &  x  )  const

Gets the value of the CIMValue. The caller should first verify that the value is of the expected type and is not null. The behavior is undefined for null values.

Parameters:
x Output Sint8 into which the value is stored.
Exceptions:
TypeMismatchException If the value type does not match the output parameter.

void CIMValue::get ( Uint8 &  x  )  const

Gets the value of the CIMValue. The caller should first verify that the value is of the expected type and is not null. The behavior is undefined for null values.

Parameters:
x Output Uint8 into which the value is stored.
Exceptions:
TypeMismatchException If the value type does not match the output parameter.

void CIMValue::get ( Boolean &  x  )  const

Gets the value of the CIMValue. The caller should first verify that the value is of the expected type and is not null. The behavior is undefined for null values.

Parameters:
x Output Boolean into which the value is stored.
Exceptions:
TypeMismatchException If the value type does not match the output parameter.

Uint32 CIMValue::getArraySize (  )  const

Gets the fixed array size of a CIMValue. This value is undefined for non-array values. A value of 0 is given for variable size arrays.

Returns:
An integer indicating the array size.

CIMType CIMValue::getType (  )  const

Gets the value type.

Returns:
A CIMType indicating the type of the value.

Boolean CIMValue::isArray (  )  const

Indicates whether the value is an array.

Returns:
A Boolean indicating whether the value is an array.

Boolean CIMValue::isNull (  )  const

Indicates whether the value is null. A null CIMValue has a type, but no value can be retrieved from it.

Returns:
A Boolean indicating whether the value is null.

CIMValue& CIMValue::operator= ( const CIMValue x  ) 

Assigns the value from a specified CIMValue object. Note: If the specified CIMValue contains CIMObject or CIMInstance objects, they are cloned to prevent subsequent modification through the shared representation model.

Parameters:
x The CIMValue object to copy
Returns:
A reference to this CIMValue object with the new assignment

void CIMValue::set ( const Array< CIMInstance > &  x  ) 

Sets the CIMValue to the specified value and inferred type. Note: The CIMInstances in the Array argument are cloned to prevent subsequent modification through the shared representation model.

Parameters:
x The CIMInstance Array value to assign
Exceptions:
UninitializedObjectException If any of the CIMInstances in the Array are uninitialized.

void CIMValue::set ( const Array< CIMObject > &  x  ) 

Sets the CIMValue to the specified value and inferred type. Note: The CIMObjects in the Array argument are cloned to prevent subsequent modification through the shared representation model.

Parameters:
x The CIMObject Array value to assign
Exceptions:
UninitializedObjectException If any of the CIMObjects in the Array are uninitialized.

void CIMValue::set ( const Array< CIMObjectPath > &  x  ) 

Sets the CIMValue to the specified value and inferred type.

Parameters:
x The CIMObjectPath Array value to assign

void CIMValue::set ( const Array< CIMDateTime > &  x  ) 

Sets the CIMValue to the specified value and inferred type.

Parameters:
x The CIMDateTime Array value to assign

void CIMValue::set ( const Array< String > &  x  ) 

Sets the CIMValue to the specified value and inferred type.

Parameters:
x The String Array value to assign

void CIMValue::set ( const Array< Char16 > &  x  ) 

Sets the CIMValue to the specified value and inferred type.

Parameters:
x The Char16 Array value to assign

void CIMValue::set ( const Array< Real64 > &  x  ) 

Sets the CIMValue to the specified value and inferred type.

Parameters:
x The Real64 Array value to assign

void CIMValue::set ( const Array< Real32 > &  x  ) 

Sets the CIMValue to the specified value and inferred type.

Parameters:
x The Real32 Array value to assign

void CIMValue::set ( const Array< Sint64 > &  x  ) 

Sets the CIMValue to the specified value and inferred type.

Parameters:
x The Sint64 Array value to assign

void CIMValue::set ( const Array< Uint64 > &  x  ) 

Sets the CIMValue to the specified value and inferred type.

Parameters:
x The Uint64 Array value to assign

void CIMValue::set ( const Array< Sint32 > &  x  ) 

Sets the CIMValue to the specified value and inferred type.

Parameters:
x The Sint32 Array value to assign

void CIMValue::set ( const Array< Uint32 > &  x  ) 

Sets the CIMValue to the specified value and inferred type.

Parameters:
x The Uint32 Array value to assign

void CIMValue::set ( const Array< Sint16 > &  x  ) 

Sets the CIMValue to the specified value and inferred type.

Parameters:
x The Sint16 Array value to assign

void CIMValue::set ( const Array< Uint16 > &  x  ) 

Sets the CIMValue to the specified value and inferred type.

Parameters:
x The Uint16 Array value to assign

void CIMValue::set ( const Array< Sint8 > &  x  ) 

Sets the CIMValue to the specified value and inferred type.

Parameters:
x The Sint8 Array value to assign

void CIMValue::set ( const Array< Uint8 > &  x  ) 

Sets the CIMValue to the specified value and inferred type.

Parameters:
x The Uint8 Array value to assign

void CIMValue::set ( const Array< Boolean > &  x  ) 

Sets the CIMValue to the specified value and inferred type.

Parameters:
x The Boolean Array value to assign

void CIMValue::set ( const CIMInstance x  ) 

Sets the CIMValue to the specified value and inferred type. Note: The CIMInstance argument is cloned to prevent subsequent modification through the shared representation model.

Parameters:
x The CIMInstance value to assign
Exceptions:
UninitializedObjectException If the CIMInstance is uninitialized.

void CIMValue::set ( const CIMObject x  ) 

Sets the CIMValue to the specified value and inferred type. Note: The CIMObject argument is cloned to prevent subsequent modification through the shared representation model.

Parameters:
x The CIMObject value to assign
Exceptions:
UninitializedObjectException If the CIMObject is uninitialized.

void CIMValue::set ( const CIMObjectPath x  ) 

Sets the CIMValue to the specified value and inferred type.

Parameters:
x The CIMObjectPath value to assign

void CIMValue::set ( const CIMDateTime x  ) 

Sets the CIMValue to the specified value and inferred type.

Parameters:
x The CIMDateTime value to assign

void CIMValue::set ( const String x  ) 

Sets the CIMValue to the specified value and inferred type.

Parameters:
x The String value to assign

void CIMValue::set ( const Char16 x  ) 

Sets the CIMValue to the specified value and inferred type.

Parameters:
x The Char16 value to assign

void CIMValue::set ( Real64  x  ) 

Sets the CIMValue to the specified value and inferred type.

Parameters:
x The Real64 value to assign

void CIMValue::set ( Real32  x  ) 

Sets the CIMValue to the specified value and inferred type.

Parameters:
x The Real32 value to assign

void CIMValue::set ( Sint64  x  ) 

Sets the CIMValue to the specified value and inferred type.

Parameters:
x The Sint64 value to assign

void CIMValue::set ( Uint64  x  ) 

Sets the CIMValue to the specified value and inferred type.

Parameters:
x The Uint64 value to assign

void CIMValue::set ( Sint32  x  ) 

Sets the CIMValue to the specified value and inferred type.

Parameters:
x The Sint32 value to assign

void CIMValue::set ( Uint32  x  ) 

Sets the CIMValue to the specified value and inferred type.

Parameters:
x The Uint32 value to assign

void CIMValue::set ( Sint16  x  ) 

Sets the CIMValue to the specified value and inferred type.

Parameters:
x The Sint16 value to assign

void CIMValue::set ( Uint16  x  ) 

Sets the CIMValue to the specified value and inferred type.

Parameters:
x The Uint16 value to assign

void CIMValue::set ( Sint8  x  ) 

Sets the CIMValue to the specified value and inferred type.

Parameters:
x The Sint8 value to assign

void CIMValue::set ( Uint8  x  ) 

Sets the CIMValue to the specified value and inferred type.

Parameters:
x The Uint8 value to assign

void CIMValue::set ( Boolean  x  ) 

Sets the CIMValue to the specified value and inferred type.

Parameters:
x The Boolean value to assign

void CIMValue::setNullValue ( CIMType  type,
Boolean  isArray,
Uint32  arraySize = 0 
)

Sets the value to null with the specified type and array indicator.

Parameters:
type The CIMType of the value
isArray A Boolean indicating whether the value is of array type
arraySize An integer specifying the size of the array, if the CIMValue is for an array of a fixed size. This value is ignored if the isArray argument is false.

String CIMValue::toString (  )  const

Converts a CIMValue to a String. This method should only be used for diagnostic output purposes. To get an actual String value, use get(String &).

Returns:
A String representation of the value.

Boolean CIMValue::typeCompatible ( const CIMValue x  )  const

Compares the type and isArray attributes with a specified CIMValue.

Parameters:
x The CIMValue object with which to compare
Returns:
A Boolean indicating whether the CIMValue objects have the same type and isArray attribute value.


The documentation for this class was generated from the following file:
  • /scratch/rpmbuild.17644.V17674/pegasus/src/Pegasus/Common/CIMValue.h