#include <CIMFlavor.h>

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() [1/2]

CIMFlavor::CIMFlavor ( )

Constructs a CIMFlavor object with the value NONE.

◆ CIMFlavor() [2/2]

CIMFlavor::CIMFlavor ( const CIMFlavor flavor)

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

Parameters
flavorThe CIMFlavor object from which to construct a new CIMFlavor object.

Member Function Documentation

◆ addFlavor()

void CIMFlavor::addFlavor ( const CIMFlavor flavor)

Adds flavor values to the CIMFlavor object.

Parameters
flavorA CIMFlavor containing the flavor values to add.

◆ equal()

Boolean CIMFlavor::equal ( const CIMFlavor flavor) const

Compares the CIMFlavor with a specified CIMFlavor.

Parameters
flavorThe CIMFlavor to be compared.
Returns
True if this flavor has the same set of values as the specified flavor, false otherwise.

◆ hasFlavor()

Boolean CIMFlavor::hasFlavor ( const CIMFlavor flavor) const

Checks whether the flavor contains specified flavor values.

Parameters
flavorA CIMFlavor specifying the flavor values to check.
Returns
True if the flavor contains all the values in the specified CIMFlavor object, false otherwise.

◆ operator+()

CIMFlavor CIMFlavor::operator+ ( const CIMFlavor flavor) const

Adds two flavor values.

Parameters
flavorA 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.

◆ operator=()

CIMFlavor& CIMFlavor::operator= ( const CIMFlavor flavor)

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

Parameters
flavorThe CIMFlavor object from which to assign this CIMFlavor object.
Returns
A reference to this CIMFlavor object.

◆ removeFlavor()

void CIMFlavor::removeFlavor ( const CIMFlavor flavor)

Removes flavor values from the CIMFlavor object.

Parameters
flavorA CIMFlavor containing the flavor values to remove.

◆ toString()

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

◆ DEFAULTS

const CIMFlavor CIMFlavor::DEFAULTS
static

Indicates the default flavor settings (OVERRIDABLE | TOSUBCLASS).

◆ DISABLEOVERRIDE

const CIMFlavor CIMFlavor::DISABLEOVERRIDE
static

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

◆ ENABLEOVERRIDE

const CIMFlavor CIMFlavor::ENABLEOVERRIDE
static

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

◆ NONE

const CIMFlavor CIMFlavor::NONE
static

Indicates that the qualifier has no flavors.

◆ OVERRIDABLE

const CIMFlavor CIMFlavor::OVERRIDABLE
static

Indicates that the qualifier may be overridden.

◆ RESTRICTED

const CIMFlavor CIMFlavor::RESTRICTED
static

Indicates that the qualifier is not propagated to subclasses.

◆ TOINSTANCE

const CIMFlavor CIMFlavor::TOINSTANCE
static

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

◆ TOSUBCLASS

const CIMFlavor CIMFlavor::TOSUBCLASS
static

Indicates that the qualifier is propagated to subclasses.

◆ TOSUBELEMENTS

const CIMFlavor CIMFlavor::TOSUBELEMENTS
static

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.

◆ TRANSLATABLE

const CIMFlavor CIMFlavor::TRANSLATABLE
static

Indicates that the qualifier is translatable (for internationalization).


The documentation for this class was generated from the following file:
  • /home/loongson/rpmbuild/BUILD/pegasus/src/Pegasus/Common/CIMFlavor.h