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

class PEGASUS_COMMON_LINKAGE CIMParameter

The CIMParameter class represents the DMTF standard CIM parameter definition.

Documentation

The CIMParameter class represents the DMTF standard CIM parameter definition. A CIMParameter is generally defined in the context of a CIMMethod. A CIM Parameter consists of:
  • A CIMName containing the name of the parameter
  • A CIMType defining the parameter type
  • A Boolean indicating whether it is an Array parameter
  • A Uint32 indicating the size of the Array, if the parameter is an Array parameter
  • A CIMName containing the reference class name for this parameter, if the parameter is of reference type
  • Zero or more CIMQualifier objects

The CIMParameter class uses a shared representation model, such that multiple CIMParameter 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 CIMParameter object affects all the CIMParameter objects that refer to the same data copy. The data remains valid until all the CIMParameter objects that refer to it are destructed. A separate copy of the data may be created using the clone method.


Inheritance:


Public Methods

[more] CIMParameter ()
Constructs an uninitialized CIMParameter object.
[more] CIMParameter (const CIMParameter& x)
Constructs a CIMParameter object from the value of a specified CIMParameter object, so that both objects refer to the same data copy.
[more] CIMParameter ( const CIMName& name, CIMType type, Boolean isArray = false, Uint32 arraySize = 0, const CIMName& referenceClassName = CIMName())
Constructs a CIMParameter object with the specified attributes.
[more] ~CIMParameter ()
Destructs the CIMParameter object
[more]CIMParameter& operator= (const CIMParameter& x)
Assigns the value of the specified CIMParameter object to this object, so that both objects refer to the same data copy.
[more]const CIMName& getName () const
Gets the parameter name.
[more]void setName (const CIMName& name)
Sets the parameter name.
[more]Boolean isArray () const
Checks whether the parameter is an Array parameter.
[more]Uint32 getArraySize () const
Gets the array size for the parameter.
[more]const CIMName& getReferenceClassName () const
Gets the reference class name for the parameter.
[more]CIMType getType () const
Gets the parameter type.
[more]CIMParameter& addQualifier (const CIMQualifier& x)
Adds a qualifier to the parameter.
[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]void removeQualifier (Uint32 index)
Removes a qualifier from the parameter.
[more]CIMConstQualifier getQualifier (Uint32 index) const
Gets the qualifier at the specified index.
[more]Uint32 getQualifierCount () const
Gets the number of qualifiers in the parameter.
[more]Boolean isUninitialized () const
Determines whether the object has been initialized.
[more]Boolean identical (const CIMConstParameter& x) const
Compares the parameter with another parameter.
[more]CIMParameter clone () const
Makes a deep copy of the parameter.

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

o CIMParameter( const CIMName& name, CIMType type, Boolean isArray = false, Uint32 arraySize = 0, const CIMName& referenceClassName = CIMName())
Constructs a CIMParameter object with the specified attributes.
Throws:
TypeMismatchException If the parameter is of reference type and referenceClassName is null or if the parameter is not of reference type and referenceClassName is not null.
TypeMismatchException If isArray is true and arraySize is not zero.
UninitializedObjectException If the parameter name is null.
Parameters:
name - A CIMName specifying the name of the parameter.
type - A CIMType defining the parameter type.
- isArray A Boolean indicating whether it is an Array parameter.
arraySize - A Uint32 indicating the size of the Array, if the parameter is an Array parameter. The default value of zero indicates a variable size array.
referenceClassName - A CIMName containing the reference class name for this parameter, if the parameter is of reference type.

o ~CIMParameter()
Destructs the CIMParameter object

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

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

ovoid setName(const CIMName& name)
Sets the parameter name.
Throws:
UninitializedObjectException If the object is not initialized.
Exception If the object is already contained by CIMMethod
Parameters:
name - A CIMName indicating the new name for the parameter.

oBoolean isArray() const
Checks whether the parameter is an Array parameter.
Throws:
UninitializedObjectException If the object is not initialized.
Returns:
True if the parameter is an Array parameter, false otherwise.

oUint32 getArraySize() const
Gets the array size for the parameter.
Throws:
UninitializedObjectException If the object is not initialized.
Returns:
Uint32 array size.

oconst CIMName& getReferenceClassName() const
Gets the reference class name for the parameter.
Throws:
UninitializedObjectException If the object is not initialized.
Returns:
A CIMName containing the reference class name for the parameter if the parameter is of reference type, a null CIMName otherwise.

oCIMType getType() const
Gets the parameter type.
Throws:
UninitializedObjectException If the object is not initialized.
Returns:
A CIMType indicating the type of this parameter.

oCIMParameter& addQualifier(const CIMQualifier& x)
Adds a qualifier to the parameter.
Throws:
AlreadyExistsException If a qualifier with the same name already exists in the CIMParameter.
UninitializedObjectException If the object is not initialized.
Parameters:
x - The CIMQualifier to be added.
Returns:
A reference to this CIMParameter 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 CIMParameter.
UninitializedObjectException If the object is not initialized.
Parameters:
index - The index of the qualifier to be retrieved.
Returns:
The CIMQualifier at the specified index.

ovoid removeQualifier(Uint32 index)
Removes a qualifier from the parameter.
Throws:
IndexOutOfBoundsException If the index is outside the range of qualifiers available for the CIMParameter.
UninitializedObjectException If the object is not initialized.
Parameters:
index - Index of the qualifier to be removed.

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 CIMParameter.
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 parameter.
              loop to access all qualifiers in a CIMparameter
             CIMParameter parm;
             ....                build the parameter
             for (Uint32 i = 0 ; i < parm.getQualifierCount() ; i++)
                 ....
        
Throws:
UninitializedObjectException If the object is not initialized.
Returns:
An integer count of the CIMQualifiers in the CIMParameter.

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

oBoolean identical(const CIMConstParameter& x) const
Compares the parameter with another parameter.
Throws:
UninitializedObjectException If either of the objects is not initialized.
Parameters:
x - The CIMConstParameter to be compared.
Returns:
True if this parameter is identical to the one specified, false otherwise.

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


This class has no child classes.
Friends:
class CIMConstParameter
class Resolver
class XmlWriter
class MofWriter
class BinaryStreamer

Alphabetic index HTML hierarchy of classes or Java


[an error occurred while processing this directive]