[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/CIMInstance.h:

class PEGASUS_COMMON_LINKAGE CIMConstInstance

The CIMConstInstance class provides a const interface to a CIMInstance object.

Documentation

The CIMConstInstance class provides a const interface to a CIMInstance object. This class is needed because the shared representation model used by CIMInstance does not prevent modification to a const CIMInstance object. Note that the value of a CIMConstInstance object could still be modified by a CIMInstance object that refers to the same data copy.

Inheritance:


Public Methods

[more] CIMConstInstance ()
Constructs an uninitialized CIMConstInstance object.
[more] CIMConstInstance (const CIMConstInstance& x)
Constructs a CIMConstInstance object from the value of a specified CIMConstInstance object, so that both objects refer to the same data copy.
[more] CIMConstInstance (const CIMInstance& x)
Constructs a CIMConstInstance object from the value of a specified CIMInstance object, so that both objects refer to the same data copy.
[more]explicit CIMConstInstance (const CIMObject& x)
Constructs a CIMConstInstance object from the value of a specified CIMObject object, so that both objects refer to the same data copy.
[more]explicit CIMConstInstance (const CIMConstObject& x)
Constructs a CIMConstInstance object from the value of a specified CIMConstObject object, so that both objects refer to the same data copy.
[more] CIMConstInstance (const CIMName& className)
Constructs a CIMConstInstance object with the specified class name.
[more]CIMConstInstance& operator= (const CIMConstInstance& x)
Assigns the value of the specified CIMConstInstance object to this object, so that both objects refer to the same data copy.
[more]CIMConstInstance& operator= (const CIMInstance& x)
Assigns the value of the specified CIMInstance object to this object, so that both objects refer to the same data copy.
[more] ~CIMConstInstance ()
Destructs the CIMConstInstance object
[more]const CIMName& getClassName () const
Gets the class name of the instance.
[more]const CIMObjectPath& getPath () const
Gets the object path for the instance.
[more]Uint32 findQualifier (const CIMName& name) const
Finds a qualifier by name.
[more]CIMConstQualifier getQualifier (Uint32 index) const
Gets the qualifier at the specified index.
[more]Uint32 getQualifierCount () const
Gets the number of qualifiers in the instance.
[more]Uint32 findProperty (const CIMName& name) const
Finds a property by name.
[more]CIMConstProperty getProperty (Uint32 index) const
Gets the property at the specified index.
[more]Uint32 getPropertyCount () const
Gets the number of properties in the instance.
[more]CIMObjectPath buildPath (const CIMConstClass& cimClass) const
Builds the object path for this instance, based on the class name and property values in the instance and the Key qualifiers on the properties in the class definition.
[more]CIMInstance clone () const
Makes a deep copy of the instance.
[more]Boolean identical (const CIMConstInstance& x) const
Compares the CIMConstInstance with a specified CIMConstInstance.
[more]Boolean isUninitialized () const
Determines whether the object has been initialized.

o CIMConstInstance()
Constructs an uninitialized CIMConstInstance 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 CIMConstInstance(const CIMConstInstance& x)
Constructs a CIMConstInstance object from the value of a specified CIMConstInstance object, so that both objects refer to the same data copy.
Parameters:
x - The CIMConstInstance object from which to construct a new CIMConstInstance object.

o CIMConstInstance(const CIMInstance& x)
Constructs a CIMConstInstance 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 a new CIMConstInstance object.

oexplicit CIMConstInstance(const CIMObject& x)
Constructs a CIMConstInstance object from the value of a specified CIMObject object, so that both objects refer to the same data copy.
Throws:
DynamicCastFailedException If a CIMConstInstance can not be created from the given CIMObject.
Parameters:
x - The CIMObject object from which to construct the CIMConstInstance object.

oexplicit CIMConstInstance(const CIMConstObject& x)
Constructs a CIMConstInstance object from the value of a specified CIMConstObject object, so that both objects refer to the same data copy.
Throws:
DynamicCastFailedException If a CIMConstInstance can not be created from the given CIMConstObject.
Parameters:
x - The CIMConstObject object from which to construct the CIMConstInstance object.

o CIMConstInstance(const CIMName& className)
Constructs a CIMConstInstance object with the specified class name.
Parameters:
className - A CIMName specifying the class name of the instance.

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

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

o ~CIMConstInstance()
Destructs the CIMConstInstance object

oconst CIMName& getClassName() const
Gets the class name of the instance.
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 instance.
Throws:
UninitializedObjectException If the object is not initialized.
Returns:
A CIMObjectPath containing the object path.

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.

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 CIMConstInstance.
UninitializedObjectException If the object is not initialized.
Parameters:
index - The index of the qualifier to be retrieved.
Returns:
The CIMConstQualifier at the specified index.

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

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.

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 CIMConstInstance.
UninitializedObjectException If the object is not initialized.
Parameters:
index - The index of the property to be retrieved.
Returns:
The CIMConstProperty at the specified index.

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

oCIMObjectPath buildPath(const CIMConstClass& cimClass) const
Builds the object path for this instance, based on the class name and property values in the instance and the Key qualifiers on the properties in the class definition. The returned object path does not include hostname and namespace attributes. Note that this method does not update the path attribute of the CIMInstance.
Throws:
UninitializedObjectException If the object is not initialized.
Returns:
A CIMObjectPath containing the object path for the instance.

oCIMInstance clone() const
Makes a deep copy of the instance. This creates a new copy of all the instance attributes including qualifiers and properties.
Throws:
UninitializedObjectException If the object is not initialized.
Returns:
A CIMInstance object with a separate copy of the CIMConstInstance object.

oBoolean identical(const CIMConstInstance& x) const
Compares the CIMConstInstance with a specified CIMConstInstance.
Throws:
UninitializedObjectException If the object is not initialized.
Parameters:
x - The CIMConstInstance to be compared.
Returns:
True if this instance 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.


This class has no child classes.
Friends:
class CIMInstance
class CIMObject
class CIMConstObject
class XmlWriter
class MofWriter
class BinaryStreamer
class SCMOInstance

Alphabetic index HTML hierarchy of classes or Java


[an error occurred while processing this directive]