Contents
|
In file ../../src/Pegasus/Common/CIMScope.h:
The CIMScope class represents the DMTF standard CIM qualifier scope definition.
Documentation
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.
Inheritance:
Public Fields
static const CIMScope | NONE
Indicates that the CIMScope object has no value (is uninitialized).
|
static const CIMScope | CLASS
Indicates that the qualifier may be used with classes
|
static const CIMScope | ASSOCIATION
Indicates that the qualifier may be used with associations
|
static const CIMScope | INDICATION
Indicates that the qualifier may be used with indications
|
static const CIMScope | PROPERTY
Indicates that the qualifier may be used with properties
|
static const CIMScope | REFERENCE
Indicates that the qualifier may be used with references
|
static const CIMScope | METHOD
Indicates that the qualifier may be used with methods
|
static const CIMScope | PARAMETER
Indicates that the qualifier may be used with parameters
|
static const CIMScope | ANY
Indicates that the qualifier may be used with any of the types of objects (classes, associations, indications, properties, references, methods, parameters)
|
Public Methods
| CIMScope ()
Constructs a CIMScope object with the value NONE
|
| CIMScope (const CIMScope& scope)
Constructs a CIMScope object from the value of a specified CIMScope object.
|
CIMScope& | operator= (const CIMScope& scope)
Assigns the value of the specified CIMScope object to this object.
|
Boolean | hasScope (const CIMScope& scope) const
Checks whether the scope contains specified scope values.
|
void | addScope (const CIMScope & scope)
Adds scopes value to the CIMScope object.
|
Boolean | equal (const CIMScope & scope) const
Compares the CIMScope with a specified CIMScope.
|
CIMScope | operator+ (const CIMScope & scope) const
Adds two scope values.
|
String | toString () const
Returns a String representation of the CIMScope object.
|
- CIMScope()
-
Constructs a CIMScope object with the value NONE
- CIMScope(const CIMScope& scope)
-
Constructs a CIMScope object from the value of a specified
CIMScope object.
- Parameters:
- scope - The CIMScope object from which to construct a new
CIMScope object.
- CIMScope& operator=(const CIMScope& scope)
-
Assigns the value of the specified CIMScope object to this object.
- Parameters:
- scope - The CIMScope object from which to assign this
CIMScope object.
- Returns:
- A reference to this CIMScope object.
- Boolean 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.
- void 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 equal(const CIMScope & scope) const
-
Compares the CIMScope with a specified CIMScope.
- Parameters:
- scope - The CIMScope to be compared.
- Returns:
- True if this scope has the same set of values as the
specified scope, false otherwise.
- CIMScope operator+(const CIMScope & scope) const
-
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.
- String 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.
- static const CIMScope NONE
-
Indicates that the CIMScope object has no value (is uninitialized).
This is not a valid qualifier scope.
- static const CIMScope CLASS
-
Indicates that the qualifier may be used with classes
- static const CIMScope ASSOCIATION
-
Indicates that the qualifier may be used with associations
- static const CIMScope INDICATION
-
Indicates that the qualifier may be used with indications
- static const CIMScope PROPERTY
-
Indicates that the qualifier may be used with properties
- static const CIMScope REFERENCE
-
Indicates that the qualifier may be used with references
- static const CIMScope METHOD
-
Indicates that the qualifier may be used with methods
- static const CIMScope PARAMETER
-
Indicates that the qualifier may be used with parameters
- static const CIMScope ANY
-
Indicates that the qualifier may be used with any of the types
of objects (classes, associations, indications, properties, references,
methods, parameters)
- This class has no child classes.
- Friends:
- class BinaryStreamer
Alphabetic index HTML hierarchy of classes or Java
|