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

class PEGASUS_COMMON_LINKAGE CIMInstance

Class CIMInstance - The CIMInstance class represents the instance of a CIM class in Pegasus.

Documentation

Class CIMInstance - The CIMInstance class represents the instance of a CIM class in Pegasus. It is used manipulate instances and the characteristics of instances

Inheritance:


Public Methods

[more] CIMInstance ()
Constructor - Create a CIM Instance object.
[more] CIMInstance (const CIMInstance& x)
Constructor - Create a CIMInstance object from another Instance.
[more]CIMInstance& operator= (const CIMInstance& x)
Constructor.
[more] CIMInstance (const String& className)
Constructor - Creates an Instance object with the classname from the input parameters
[more] ~CIMInstance ()
Destructor.
[more]const String& getClassName () const
getClassName - Returns the class name of the instance
[more]CIMInstance& addQualifier (const CIMQualifier& qualifier)
addQualifier - Adds the CIMQualifier object to the instance.
[more]Uint32 findQualifier (const String& name)
findQualifier - Searches the instance for the qualifier object defined by the input parameter.
[more]Uint32 existsQualifier (const String& name)
existsQualifier - Searches the instance for the qualifier object defined by the input parameter.
[more]CIMQualifier getQualifier (Uint32 pos)
getQualifier - Retrieves the qualifier object defined by the index input parameter.
[more]CIMConstQualifier getQualifier (Uint32 pos) const
getQualifier - Retrieves the qualifier object defined by the index input parameter.
[more]Uint32 getQualifierCount () const
getQualifierCount - Gets the numbercount of CIMQualifierobjects defined for this CIMInstance.
[more]CIMInstance& addProperty (const CIMProperty& x)
addProperty - Adds a property object defined by the input parameter to the CIMInstance
[more]Uint32 findProperty (const String& name)
findProperty - Searches the CIMProperty objects installed in the CIMInstance for property objects with the name defined by the input.
[more]Boolean existsProperty (const String& name)
existsPropery - Determines if a property object with the name defined by the input parameter exists in the class.
[more]CIMProperty getProperty (Uint32 pos)
getProperty - Gets the CIMproperty object in the CIMInstance defined by the input index parameter.
[more]CIMConstProperty getProperty (Uint32 pos) const
getProperty - Gets the CIMproperty object in the CIMInstance defined by the input index parameter.
[more]void removeProperty (Uint32 pos)
removeProperty - Removes the property represented by the position input parameter from the instance.
[more]Uint32 getPropertyCount () const
getPropertyCount - Gets the numbercount of CIMProperty objects defined for this CIMInstance.
[more] operator int () const
operator int() - ATTN:
[more]void resolve (DeclContext* declContext, const String& nameSpace)
resolve - ATTN:
[more]void toXml (Array<Sint8>& out) const
toXml - Creates an XML transformation of the CIMInstance compatiblewith the DMTF CIM Operations over HTTP defintions.
[more]void print (PEGASUS_STD(ostream) &o=PEGASUS_STD(cout)) const
prints the class in XML format.
[more]Boolean identical (const CIMConstInstance& x) const
identical - Compares the CIMInstance with another CIMInstance defined by the input parameter for equality of all components.
[more]CIMInstance clone () const
CIMMethod
[more]CIMReference getInstanceName (const CIMConstClass& cimClass) const
getInstnaceName - Get the instance name of this instance.

o CIMInstance()
Constructor - Create a CIM Instance object.
Returns:
Instance created

o CIMInstance(const CIMInstance& x)
Constructor - Create a CIMInstance object from another Instance.
Parameters:
Instance - object from which the new instance is created.
Returns:
New instance

oCIMInstance& operator=(const CIMInstance& x)
Constructor.

o CIMInstance(const String& className)
Constructor - Creates an Instance object with the classname from the input parameters
Throws:
Throws IllegalName if className argument not legal CIM identifier. ATTN: Clarify the defintion of legal CIM identifier.
Parameters:
- - String className to be used with new instance object
Returns:
The new instance object

o ~CIMInstance()
Destructor.

oconst String& getClassName() const
getClassName - Returns the class name of the instance
Returns:
String with the class name.

oCIMInstance& addQualifier(const CIMQualifier& qualifier)
addQualifier - Adds the CIMQualifier object to the instance. Thows an exception of the CIMQualifier already exists in the instance
Throws:
Throws AlreadyExists.
Parameters:
- CIMQualifier object to add to instance
Returns:
ATTN:

oUint32 findQualifier(const String& name)
findQualifier - Searches the instance for the qualifier object defined by the input parameter.
Parameters:
- String defining the qualifier object to be found.
Returns:
- Position of the qualifier to be used in subsequent operations or PEG_NOT_FOUND if the qualifier is not found.

oUint32 existsQualifier(const String& name)
existsQualifier - Searches the instance for the qualifier object defined by the input parameter.
Parameters:
- String defining the qualifier object to be found.
Returns:
- Returns True if the qualifier object exists or false if the qualifier is not found.

oCIMQualifier getQualifier(Uint32 pos)
getQualifier - Retrieves the qualifier object defined by the index input parameter. @ index for the qualifier object. The index to qualifier objects is zero-origin and continuous so that incrementing loops can be used to get all qualifier objects in a CIMInstnace.
Throws:
Throws the OutOfBounds exception if the index is out of bounds
Returns:
: Returns qualifier object defined by index.

oCIMConstQualifier getQualifier(Uint32 pos) const
getQualifier - Retrieves the qualifier object defined by the index input parameter. @ index for the qualifier object. The index to qualifier objects is zero-origin and continuous so that incrementing loops can be used to get all qualifier objects in a CIMInstnace.
Throws:
Throws the OutOfBounds exception if the index is out of bounds ATTN: What is effect of out of range index??? ATTN: Is the above statement correct???
Returns:
: Returns qualifier object defined by index.

oUint32 getQualifierCount() const
getQualifierCount - Gets the numbercount of CIMQualifierobjects defined for this CIMInstance.
Throws:
Throws the OutOfBounds exception if the index is out of bounds
Returns:
Count of the number of CIMQalifier objects in the CIMInstance.

oCIMInstance& addProperty(const CIMProperty& x)
addProperty - Adds a property object defined by the input parameter to the CIMInstance
Throws:
Throws the exception AlreadyExists if the property already exists.
Parameters:
Property - Object to be added. See the CIM Property class for definition of the property object
Returns:
ATTN:

oUint32 findProperty(const String& name)
findProperty - Searches the CIMProperty objects installed in the CIMInstance for property objects with the name defined by the input.
Parameters:
- String with the name of the property object to be found
Returns:
Position in the CIM Instance to the property object if found or PEG_NOT_FOUND if no property object found with the name defined by the input.

oBoolean existsProperty(const String& name)
existsPropery - Determines if a property object with the name defined by the input parameter exists in the class. @parm String parameter with the property name.
Returns:
True if the property object exists.

oCIMProperty getProperty(Uint32 pos)
getProperty - Gets the CIMproperty object in the CIMInstance defined by the input index parameter.
Throws:
Throws the OutOfBounds exception if the index is out of bounds ATTN: What is the effect of out of range?
Parameters:
Index - to the property object in the CIMInstance. The index to qualifier objects is zero-origin and continuous so that incrementing loops can be used to get all qualifier objects in a CIMInstnace.
Returns:
CIMProperty object corresponding to the index.

oCIMConstProperty getProperty(Uint32 pos) const
getProperty - Gets the CIMproperty object in the CIMInstance defined by the input index parameter.
Throws:
Throws the OutOfBounds exception if the index is out of bounds ATTN: What is the effect of out of range?
Parameters:
Index - to the property object in the CIMInstance. The index to qualifier objects is zero-origin and continuous so that incrementing loops can be used to get all qualifier objects in a CIMInstnace.
Returns:
CIMProperty object corresponding to the index.

ovoid removeProperty(Uint32 pos)
removeProperty - Removes the property represented by the position input parameter from the instance.
Throws:
Throws OutofBounds if index is not a property object
Parameters:
pos - Index to the property to be removed from the instance. Normally this is obtained by getProperty();

oUint32 getPropertyCount() const
getPropertyCount - Gets the numbercount of CIMProperty objects defined for this CIMInstance.
Throws:
Throws the OutOfBounds exception if the index is out of bounds
Returns:
Count of the number of CIMProperty objects in the CIMInstance. Zero indicates that no CIMProperty objects are contained in the CIMInstance

o operator int() const
operator int() - ATTN:

ovoid resolve(DeclContext* declContext, const String& nameSpace)
resolve - ATTN:

ovoid toXml(Array<Sint8>& out) const
toXml - Creates an XML transformation of the CIMInstance compatiblewith the DMTF CIM Operations over HTTP defintions.
Returns:
ATTN: This is incorrect and needs to be corrected.

ovoid print(PEGASUS_STD(ostream) &o=PEGASUS_STD(cout)) const
prints the class in XML format.

oBoolean identical(const CIMConstInstance& x) const
identical - Compares the CIMInstance with another CIMInstance defined by the input parameter for equality of all components.
Parameters:
- CIMInstance to be compared
Returns:
Boolean true if they are identical

oCIMInstance clone() const
CIMMethod

oCIMReference getInstanceName(const CIMConstClass& cimClass) const
getInstnaceName - Get the instance name of this instance. The class argument is used to determine which fields are keys. The instance name has this from:

	    ClassName.key1=value1,...,keyN=valueN
	

The instance name is in standard form (the class name and key name is all lowercase; the keys-value pairs appear in sorted order by key name).


This class has no child classes.
Friends:
class CIMConstInstance
class CIMObject

Alphabetic index HTML hierarchy of classes or Java