version 1.15, 2002/03/24 13:33:07
|
version 1.16, 2002/03/25 16:27:51
|
|
|
// | // |
// Author: Mike Brasher (mbrasher@bmc.com) | // Author: Mike Brasher (mbrasher@bmc.com) |
// | // |
// Modified By: |
// Modified By: Karl Schopmeyer (k.schopmeyer@opengroup.org) |
// | // |
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
|
|
defined on input. | defined on input. |
@param String representing CIMName for the new qualifier | @param String representing CIMName for the new qualifier |
@param value | @param value |
@param flavor - ATTN: |
@param flavor - Flavor defined for this qualifier definition. Default for this |
@param propoagated - ATTN: |
parameter is CIMFlavor::DEFAULTS (which allows override and tosubclass). |
|
@param propoagated - Boolean defining whether this is a propagated qualifier. |
|
This is an optional parameter with default = false |
@return -Returns the instantiated qualifier object or throws an exception | @return -Returns the instantiated qualifier object or throws an exception |
if the name argument is illegal | if the name argument is illegal |
| |
|
|
_rep->setValue(value); | _rep->setValue(value); |
} | } |
| |
|
/* setFlavor - Sets the value defined on input into the Flavor variable |
|
for the Qualifier Object. |
|
@param flavor - Uint32 defines the flavor bits to be set. |
|
*/ |
|
void setFlavor(Uint32 flavor) |
|
{ |
|
_checkRep(); |
|
_rep->setFlavor(flavor); |
|
} |
|
|
/** getFlavor - Gets the Flavor field from a Qualifier | /** getFlavor - Gets the Flavor field from a Qualifier |
@return - Uint32 with the Flavor flags |
@return - Uint32 with the Flavor flags that can be tested |
|
against the CIMFlavor constants. |
*/ | */ |
Uint32 getFlavor() const | Uint32 getFlavor() const |
{ | { |
_checkRep(); | _checkRep(); |
return _rep->getFlavor(); | return _rep->getFlavor(); |
} | } |
/** |
/** isFlavor - Boolean function that determines if particular flavor |
|
flags are set in the flavor variable of a qualifier. |
|
@param flavor - The flavor bits to test. |
|
Return True if the defined flavor is set. |
|
<pre> |
|
if (q.isFlavor(CIMType::TOSUBCLASS) |
|
do something based on TOSUBCLASS being true |
|
</pre> |
|
|
*/ | */ |
Boolean isFlavor(Uint32 flavor) const | Boolean isFlavor(Uint32 flavor) const |
{ | { |