|
CIMScope Class Reference#include <CIMScope.h>
List of all members.
Detailed Description
The CIMScope class represents the DMTF standard CIM qualifier scope definition. The scope of a qualifier defines the types of CIM objects with which the qualifier may be used. A CIMScope contains zero or more of these values: CLASS, ASSOCIATION, INDICATION, PROPERTY, REFERENCE, METHOD, PARAMETER.
Constructor & Destructor Documentation
Constructs a CIMScope object with the value NONE.
CIMScope::CIMScope |
( |
const CIMScope & |
scope |
) |
|
Constructs a CIMScope object from the value of a specified CIMScope object. - Parameters:
-
Member Function Documentation
void CIMScope::addScope |
( |
const CIMScope & |
scope |
) |
|
Adds scopes value to the CIMScope object.
Example:
CIMScope s;
s.addScope(CIMScope::INDICATION);
assert(s.hasScope(CIMScope::INDICATION));
- Parameters:
-
| scope | A CIMScope containing the scope values to add. |
Boolean CIMScope::equal |
( |
const CIMScope & |
scope |
) |
const |
Compares the CIMScope with a specified CIMScope. - Parameters:
-
- Returns:
- True if this scope has the same set of values as the specified scope, false otherwise.
Boolean CIMScope::hasScope |
( |
const CIMScope & |
scope |
) |
const |
Checks whether the scope contains specified scope values. - Parameters:
-
| scope | A CIMScope specifying the scope values to check. |
- Returns:
- True if the scope contains all the values in the specified CIMScope object, false otherwise.
Adds two scope values.
Example:
CIMScope s0(CIMScope::CLASS);
CIMScope s1(CIMScope::PARAMETER);
CIMScope s3 = s0 + S1;
- Parameters:
-
| scope | A CIMScope containing the scope value to add to this scope. |
- Returns:
- A new CIMScope object containing a union of the values in the two scope objects.
Assigns the value of the specified CIMScope object to this object. - Parameters:
-
- Returns:
- A reference to this CIMScope object.
String CIMScope::toString |
( |
|
) |
const |
Returns a String representation of the CIMScope object. This method is for diagnostic purposes. The format of the output is subject to change. - Returns:
- A String containing a human-readable representation of the scope value.
Member Data Documentation
Indicates that the qualifier may be used with any of the types of objects (classes, associations, indications, properties, references, methods, parameters).
Indicates that the qualifier may be used with associations.
Indicates that the qualifier may be used with classes.
Indicates that the qualifier may be used with indications.
Indicates that the qualifier may be used with methods.
Indicates that the CIMScope object has no value (is uninitialized). This is not a valid qualifier scope.
Indicates that the qualifier may be used with parameters.
Indicates that the qualifier may be used with properties.
Indicates that the qualifier may be used with references.
The documentation for this class was generated from the following file:
- /scratch/rpmbuild.5425.Bj5455/pegasus/src/Pegasus/Common/CIMScope.h
|