CIMFlavor Class Reference

#include <CIMFlavor.h>

List of all members.

Public Member Functions

 CIMFlavor ()
 CIMFlavor (const CIMFlavor &flavor)
CIMFlavoroperator= (const CIMFlavor &flavor)
void addFlavor (const CIMFlavor &flavor)
void removeFlavor (const CIMFlavor &flavor)
Boolean hasFlavor (const CIMFlavor &flavor) const
Boolean equal (const CIMFlavor &flavor) const
CIMFlavor operator+ (const CIMFlavor &flavor) const
String toString () const

Static Public Attributes

static const CIMFlavor NONE
static const CIMFlavor OVERRIDABLE
static const CIMFlavor ENABLEOVERRIDE
static const CIMFlavor DISABLEOVERRIDE
static const CIMFlavor TOSUBCLASS
static const CIMFlavor RESTRICTED
static const CIMFlavor TOINSTANCE
static const CIMFlavor TRANSLATABLE
static const CIMFlavor DEFAULTS
static const CIMFlavor TOSUBELEMENTS

Detailed Description

The CIMFlavor class represents the DMTF standard CIM qualifier flavor definition, which 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 a derived class may override a qualifier value.

A CIMFlavor contains one or more of these values: OVERRIDABLE, TOSUBCLASS, TOINSTANCE, TRANSLATABLE, DISABLEOVERRIDE, ENABLEOVERRIDE, RESTRICTED and DEFAULTS.


Constructor & Destructor Documentation

CIMFlavor::CIMFlavor (  ) 

Constructs a CIMFlavor object with the value NONE.

CIMFlavor::CIMFlavor ( const CIMFlavor flavor  ) 

Constructs a CIMFlavor object from the value of a specified CIMFlavor object.

Parameters:
flavor The CIMFlavor object from which to construct a new CIMFlavor object.

Member Function Documentation

void CIMFlavor::addFlavor ( const CIMFlavor flavor  ) 

Adds flavor values to the CIMFlavor object.

Parameters:
flavor A CIMFlavor containing the flavor values to add.
Boolean CIMFlavor::equal ( const CIMFlavor flavor  )  const

Compares the CIMFlavor with a specified CIMFlavor.

Parameters:
flavor The CIMFlavor to be compared.
Returns:
True if this flavor has the same set of values as the specified flavor, false otherwise.
Boolean CIMFlavor::hasFlavor ( const CIMFlavor flavor  )  const

Checks whether the flavor contains specified flavor values.

Parameters:
flavor A CIMFlavor specifying the flavor values to check.
Returns:
True if the flavor contains all the values in the specified CIMFlavor object, false otherwise.
CIMFlavor CIMFlavor::operator+ ( const CIMFlavor flavor  )  const

Adds two flavor values.

Parameters:
flavor A CIMFlavor containing the flavor value to add to this flavor.
Returns:
A new CIMFlavor object containing a union of the values in the two flavor objects.
CIMFlavor& CIMFlavor::operator= ( const CIMFlavor flavor  ) 

Assigns the value of the specified CIMFlavor object to this object.

Parameters:
flavor The CIMFlavor object from which to assign this CIMFlavor object.
Returns:
A reference to this CIMFlavor object.
void CIMFlavor::removeFlavor ( const CIMFlavor flavor  ) 

Removes flavor values from the CIMFlavor object.

Parameters:
flavor A CIMFlavor containing the flavor values to remove.
String CIMFlavor::toString (  )  const

Returns a String representation of the CIMFlavor 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 flavor value.

Member Data Documentation

Indicates the default flavor settings (OVERRIDABLE | TOSUBCLASS).

Indicates that the override feature is disabled for the qualifier. Thus, the qualifier may not be overridden.

Indicates that the override feature is enabled for the qualifier. Thus, the qualifier may be overridden.

const CIMFlavor CIMFlavor::NONE [static]

Indicates that the qualifier has no flavors.

Indicates that the qualifier may be overridden.

Indicates that the qualifier is not propagated to subclasses.

Indicates that the qualifier is propagated to instances. NOTE: This flavor is deprecated and should not be used.

Indicates that the qualifier is propagated to subclasses.

Indicates that the qualifier is propagated to subclasses. This flavor is equivalent to TOSUBCLASSES. The TOINSTANCE flavor is no longer included here since it is deprecated.

Indicates that the qualifier is translatable (for internationalization).


The documentation for this class was generated from the following file:
  • /var/tmp/axbld-24884/rpm/BUILD/pegasus/src/Pegasus/Common/CIMFlavor.h