[an error occurred while processing this directive]
[an error occurred while processing this directive] [an error occurred while processing this directive]

Pegasus CIM Object Broker Documentation

[an error occurred while processing this directive]


[an error occurred while processing this directive]

 

Contents

o Introduction
o Objectives
o Overview
o Credits
o Pegasus Architecture
   o Design Goals
   o The Broker
   o Pegasus Providers.
   o Extension Services
   o Pegasus Clients.
   o Functional Flow
o Pegasus Components
   o Component Descriptions
   o Pegasus Directory Structure
o Pegasus Utilization
   o Pegasus Availability
   o Pegasus Installation
   o Pegasus Operation
   o Pegasus CIM Clients
   o Pegasus Providers
   o Pegasus MOF Compiler
o Programming Pegasus
   o CIM Objects in Pegasus
   o CIM Object Table
   o Class Definitions
o Pegasus Interfaces
   o CIM Operations over HTTP
   o Pegasus Client Interfaces
   o Pegasus Provider Interfaces
   o Pegasus Service Extension Interfaces
   o Repository Interfaces
o Writing Providers.
o Glossary
o Pegasus Code Examples
   o Client Examples
   o Client Coding Examples
   o Provider Coding Examples
o Document References
o Pegausus FAQ
o
In file ../../src/Pegasus/Common/CIMObject.h:

class PEGASUS_COMMON_LINKAGE CIMObject

The CIMObject class represents the DMTF standard CIM object definition, which may represent a CIMClass or a CIMInstance.

Documentation

The CIMObject class represents the DMTF standard CIM object definition, which may represent a CIMClass or a CIMInstance.

The CIMObject class uses a shared representation model, such that multiple CIMObject objects may refer to the same data copy. Assignment and copy operators create new references to the same data, not distinct copies. An update to a CIMObject object affects all the CIMObject objects that refer to the same data copy. The data remains valid until all the CIMObject objects that refer to it are destructed. A separate copy of the data may be created using the clone method.


Inheritance:


Public Methods

[more] CIMObject ()
Constructs an uninitialized CIMObject object.
[more] CIMObject (const CIMObject& x)
Constructs a CIMObject object from the value of a specified CIMObject object, so that both objects refer to the same data copy.
[more] CIMObject (const CIMClass& x)
Constructs a CIMObject object from the value of a specified CIMClass object, so that both objects refer to the same data copy.
[more] CIMObject (const CIMInstance& x)
Constructs a CIMObject object from the value of a specified CIMInstance object, so that both objects refer to the same data copy.
[more]CIMObject& operator= (const CIMObject& x)
Assigns the value of the specified CIMObject object to this object, so that both objects refer to the same data copy.
[more] ~CIMObject ()
Destructs the CIMObject object
[more]const CIMName& getClassName () const
Gets the class name of the object.
[more]const CIMObjectPath& getPath () const
Gets the object path for the object.
[more]void setPath (const CIMObjectPath & path)
Sets the object path for the object.
[more]CIMObject& addQualifier (const CIMQualifier& qualifier)
Adds a qualifier to the object.
[more]Uint32 findQualifier (const CIMName& name) const
Finds a qualifier by name.
[more]CIMQualifier getQualifier (Uint32 index)
Gets the qualifier at the specified index.
[more]CIMConstQualifier getQualifier (Uint32 index) const
Gets the qualifier at the specified index.
[more]void removeQualifier (Uint32 index)
Removes a qualifier from the object.
[more]Uint32 getQualifierCount () const
Gets the number of qualifiers in the object.
[more]CIMObject& addProperty (const CIMProperty& x)
Adds a property to the object.
[more]Uint32 findProperty (const CIMName& name) const
Finds a property by name.
[more]CIMProperty getProperty (Uint32 index)
Gets the property at the specified index.
[more]CIMConstProperty getProperty (Uint32 index) const
Gets the property at the specified index.
[more]void removeProperty (Uint32 index)
Removes a property from the object.
[more]Uint32 getPropertyCount () const
Gets the number of properties in the object.
[more]CIMObject clone () const
Makes a deep copy of the object.
[more]Boolean identical (const CIMConstObject& x) const
Compares the CIMObject with a specified CIMConstObject.
[more]Boolean isUninitialized () const
Determines whether the object has been initialized.
[more]String toString () const
Generates a human-readable String representing the value of the CIMObject.
[more]Boolean isClass () const
Indicates whether the object represents a CIMClass.
[more]Boolean isInstance () const
Indicates whether the object represents a CIMInstance.

o CIMObject()
Constructs an uninitialized CIMObject object. A method invocation on an uninitialized object will result in the throwing of an UninitializedObjectException. An uninitialized object may be converted into an initialized object only by using the assignment operator with an initialized object.

o CIMObject(const CIMObject& x)
Constructs a CIMObject object from the value of a specified CIMObject object, so that both objects refer to the same data copy.
Parameters:
x - The CIMObject object from which to construct a new CIMObject object.

o CIMObject(const CIMClass& x)
Constructs a CIMObject object from the value of a specified CIMClass object, so that both objects refer to the same data copy.
Parameters:
x - The CIMClass object from which to construct the CIMObject object.

o CIMObject(const CIMInstance& x)
Constructs a CIMObject object from the value of a specified CIMInstance object, so that both objects refer to the same data copy.
Parameters:
x - The CIMInstance object from which to construct the CIMObject object.

oCIMObject& operator=(const CIMObject& x)
Assigns the value of the specified CIMObject object to this object, so that both objects refer to the same data copy.
Parameters:
x - The CIMObject object from which to assign this CIMObject object.
Returns:
A reference to this CIMObject object.

o ~CIMObject()
Destructs the CIMObject object

oconst CIMName& getClassName() const
Gets the class name of the object.
Throws:
UninitializedObjectException If the object is not initialized.
Returns:
A CIMName containing the class name.

oconst CIMObjectPath& getPath() const
Gets the object path for the object.
Throws:
UninitializedObjectException If the object is not initialized.
Returns:
A CIMObjectPath containing the object path.

ovoid setPath(const CIMObjectPath & path)
Sets the object path for the object.
Throws:
UninitializedObjectException If the object is not initialized.
Parameters:
path - A CIMObjectPath containing the object path.

oCIMObject& addQualifier(const CIMQualifier& qualifier)
Adds a qualifier to the object.
Throws:
AlreadyExistsException If a qualifier with the same name already exists in the CIMObject.
UninitializedObjectException If the object is not initialized.
Parameters:
qualifier - The CIMQualifier to be added.
Returns:
A reference to this CIMObject object.

oUint32 findQualifier(const CIMName& name) const
Finds a qualifier by name.
Throws:
UninitializedObjectException If the object is not initialized.
Parameters:
name - A CIMName specifying the name of the qualifier to be found.
Returns:
Index of the qualifier if found or PEG_NOT_FOUND if not found.

oCIMQualifier getQualifier(Uint32 index)
Gets the qualifier at the specified index.
Throws:
IndexOutOfBoundsException If the index is outside the range of qualifiers available for the CIMObject.
UninitializedObjectException If the object is not initialized.
Parameters:
index - The index of the qualifier to be retrieved.
Returns:
The CIMQualifier at the specified index.

oCIMConstQualifier getQualifier(Uint32 index) const
Gets the qualifier at the specified index.
Throws:
IndexOutOfBoundsException If the index is outside the range of qualifiers available for the CIMObject.
UninitializedObjectException If the object is not initialized.
Parameters:
index - The index of the qualifier to be retrieved.
Returns:
The CIMConstQualifier at the specified index.

ovoid removeQualifier(Uint32 index)
Removes a qualifier from the object.
Throws:
IndexOutOfBoundsException If the index is outside the range of qualifiers available for the CIMObject.
UninitializedObjectException If the object is not initialized.
Parameters:
index - The index of the qualifier to remove.

oUint32 getQualifierCount() const
Gets the number of qualifiers in the object.
Throws:
UninitializedObjectException If the object is not initialized.
Returns:
An integer count of the qualifiers in the CIMObject.

oCIMObject& addProperty(const CIMProperty& x)
Adds a property to the object.
Throws:
AlreadyExistsException If a property with the same name already exists in the CIMObject.
UninitializedObjectException If the object is not initialized.
Parameters:
x - The CIMProperty to be added.
Returns:
A reference to this CIMObject object.

oUint32 findProperty(const CIMName& name) const
Finds a property by name.
Throws:
UninitializedObjectException If the object is not initialized.
Parameters:
name - A CIMName specifying the name of the property to be found.
Returns:
Index of the property if found or PEG_NOT_FOUND if not found.

oCIMProperty getProperty(Uint32 index)
Gets the property at the specified index.
Throws:
IndexOutOfBoundsException If the index is outside the range of properties available for the CIMObject.
UninitializedObjectException If the object is not initialized.
Parameters:
index - The index of the property to be retrieved.
Returns:
The CIMProperty at the specified index.

oCIMConstProperty getProperty(Uint32 index) const
Gets the property at the specified index.
Throws:
IndexOutOfBoundsException If the index is outside the range of properties available for the CIMObject.
UninitializedObjectException If the object is not initialized.
Parameters:
index - The index of the property to be retrieved.
Returns:
The CIMConstProperty at the specified index.

ovoid removeProperty(Uint32 index)
Removes a property from the object.
Throws:
IndexOutOfBoundsException If the index is outside the range of properties available for the CIMObject.
UninitializedObjectException If the object is not initialized.
Parameters:
index - The index of the property to remove.

oUint32 getPropertyCount() const
Gets the number of properties in the object.
Throws:
UninitializedObjectException If the object is not initialized.
Returns:
An integer count of the properties in the CIMObject.

oCIMObject clone() const
Makes a deep copy of the object. This creates a new copy of all the object attributes including qualifiers and properties.
Throws:
UninitializedObjectException If the object is not initialized.
Returns:
A new copy of the CIMObject object.

oBoolean identical(const CIMConstObject& x) const
Compares the CIMObject with a specified CIMConstObject.
Throws:
UninitializedObjectException If the object is not initialized.
Parameters:
x - The CIMConstObject to be compared.
Returns:
True if this object is identical to the one specified, false otherwise.

oBoolean isUninitialized() const
Determines whether the object has been initialized.
Returns:
True if the object has not been initialized, false otherwise.

oString toString() const
Generates a human-readable String representing the value of the CIMObject. The String may be in MOF format, but the format is not guaranteed and may change without notice.
Throws:
UninitializedObjectException If the object is not initialized.
Returns:
A human-readable String representing the CIMObject value.

oBoolean isClass() const
Indicates whether the object represents a CIMClass.
Returns:
True if the object represents a CIMClass; false otherwise.

oBoolean isInstance() const
Indicates whether the object represents a CIMInstance.
Returns:
True if the object represents a CIMInstance; false otherwise.


This class has no child classes.
Friends:
class CIMConstObject
class CIMClass
class CIMConstClass
class CIMInstance
class CIMConstInstance

Alphabetic index HTML hierarchy of classes or Java


[an error occurred while processing this directive]