In file ../../src/Pegasus/Common/CIMFlavor.h:

class PEGASUS_COMMON_LINKAGE CIMFlavor

The CIMFlavor class implements the concept of the CIM qualifier flavor that encapsulates the propagation and override rules for qualifiers.

Documentation

The CIMFlavor class implements the concept of the CIM qualifier flavor that encapsulates the propagation and override rules for qualifiers. The propagation rules define whether a qualifier may be propagated from classes to derived classes, or from classes to instances. The override rules define whether or not derived classes may override a qualifier value or whether it must be fixed for an entire class hierarchy.

The possible values are: OVERRIDABLE, TOSUBCLASS, TOINSTANCE, TRANSLATABLE, DISABLEOVERRIDE, ENABLEOVERRID, RESTRICTED and DEFAULTS. The flavor is a set of zero or more of these possible values.


Inheritance:


Public Fields

[more]static const CIMFlavor NONE
Indicates that the qualifier has no flavors.
[more]static const CIMFlavor OVERRIDABLE
Indicates that the qualifier may be overridden
[more]static const CIMFlavor ENABLEOVERRIDE
Indicates that the override feature is enable for the qualifier.
[more]static const CIMFlavor DISABLEOVERRIDE
Indicates that the qualifier may not be overridden
[more]static const CIMFlavor TOSUBCLASS
Indicates that the qualifier is propagated to the qualifier in the subclass with the same name
[more]static const CIMFlavor RESTRICTED
Indicates that the qualifier is not propagated to the qualifier in the subclass with the same name; it applies only to the class in which it is declared
[more]static const CIMFlavor TOINSTANCE
Indicates that the qualifier is propagated to the qualifier in the instance with the same name
[more]static const CIMFlavor TRANSLATABLE
Indicates that the qualifier is translatable (for internationalization)
[more]static const CIMFlavor DEFAULTS
Indicates the default flavor settings.
[more]static const CIMFlavor TOSUBELEMENTS
Indicates both toSubclass and toInstance (TOSUBCLASS | TOINSTANCE)

Public Methods

[more] CIMFlavor ()
Constructs a CIMFlavor object with no flavor values set (default constructor).
[more] CIMFlavor (const CIMFlavor & flavor)
Constructs a CIMFlavor object from an existing CIMFlavor object (copy constructor).
[more]CIMFlavor& operator= (const CIMFlavor & flavor)
Assigns the value of one CIMFlavor object to another (assignment operator).
[more]void addFlavor (const CIMFlavor & flavor)
Adds the set of flavor values of the specified CIMFlavor object to this CIMFlavor object.
[more]void removeFlavor (const CIMFlavor & flavor)
Removes the specified set of flavor values from the CIMFlavor object.
[more]Boolean hasFlavor (const CIMFlavor & flavor) const
Determines if every value in the specified CIMFlavor object is included in this CIMFlavor object.
[more]Boolean equal (const CIMFlavor & flavor) const
Compares two CIMFlavor objects and determines whether or not they are equal.
[more]CIMFlavor operator+ (const CIMFlavor & flavor) const
Combines two CIMFlavor objects.
[more]String toString () const
Returns a String representation of the CIMFlavor object.

o CIMFlavor()
Constructs a CIMFlavor object with no flavor values set (default constructor). The parameters and values are null.

o CIMFlavor(const CIMFlavor & flavor)
Constructs a CIMFlavor object from an existing CIMFlavor object (copy constructor).

Parameters:
flavor - Specifies the name of the CIMFlavor instance of the CIMFlavor object.

oCIMFlavor& operator= (const CIMFlavor & flavor)
Assigns the value of one CIMFlavor object to another (assignment operator).

Parameters:
flavor - Specifies the name of the CIMFlavor instance of the CIMFlavor object.
Returns:
The new instance of the CIMFlavor object.

ovoid addFlavor(const CIMFlavor & flavor)
Adds the set of flavor values of the specified CIMFlavor object to this CIMFlavor object.

Parameters:
flavor - Specifies the name of the CIMFlavor object that contains the flavor values to add to the CIMFlavor object.

ovoid removeFlavor(const CIMFlavor & flavor)
Removes the specified set of flavor values from the CIMFlavor object.

Parameters:
flavor - Specifies the name of the CIMFlavor object that contains the flavor values to remove from the CIMFlavor object.

oBoolean hasFlavor(const CIMFlavor & flavor) const
Determines if every value in the specified CIMFlavor object is included in this CIMFlavor object.

Parameters:
flavor - Specifies the name of the CIMFlavor instance whose values you want to compare to the CIMFlavor object.
Returns:
True if every value in the specified instance of the CIMFlavor object is included in the CIMFlavor object. Otherwise, a value of false is returned.

oBoolean equal(const CIMFlavor & flavor) const
Compares two CIMFlavor objects and determines whether or not they are equal.

Parameters:
flavor - Specifies the name of the CIMFlavor instance that you want to compare to the CIMFlavor object.
Returns:
True if the two CIMFlavor objects are equal. Otherwise, a value of false is returned.

oCIMFlavor operator+ (const CIMFlavor & flavor) const
Combines two CIMFlavor objects. The parameters and values of the specified CIMFlavor instance are included (added) to the CIMFlavor object.

Parameters:
flavor - Specifies the name of the CIMFlavor instance to add to the CIMFlavor object.
Returns:
A new CIMFlavor object that represents the combination of this flavor with the specified flavor.

oString toString() const
Returns a String representation of the CIMFlavor object. Use this method to aide in debugging problems. Depending on the implementation, the string format may vary. The returned value cannot be null but may be empty.

ostatic const CIMFlavor NONE
Indicates that the qualifier has no flavors. Thus, the qualifier does not have any parameters nor values.

ostatic const CIMFlavor OVERRIDABLE
Indicates that the qualifier may be overridden

ostatic const CIMFlavor ENABLEOVERRIDE
Indicates that the override feature is enable for the qualifier. Thus, the qualifier can be overridden.

ostatic const CIMFlavor DISABLEOVERRIDE
Indicates that the qualifier may not be overridden

ostatic const CIMFlavor TOSUBCLASS
Indicates that the qualifier is propagated to the qualifier in the subclass with the same name

ostatic const CIMFlavor RESTRICTED
Indicates that the qualifier is not propagated to the qualifier in the subclass with the same name; it applies only to the class in which it is declared

ostatic const CIMFlavor TOINSTANCE
Indicates that the qualifier is propagated to the qualifier in the instance with the same name

ostatic const CIMFlavor TRANSLATABLE
Indicates that the qualifier is translatable (for internationalization)

ostatic const CIMFlavor DEFAULTS
Indicates the default flavor settings. (OVERRIDABLE | TOSUBCLASS).

ostatic const CIMFlavor TOSUBELEMENTS
Indicates both toSubclass and toInstance (TOSUBCLASS | TOINSTANCE)


This class has no child classes.
Friends:
class BinaryStreamer

Alphabetic index HTML hierarchy of classes or Java