version 1.17, 2002/03/28 02:57:54
|
version 1.18, 2002/04/02 16:52:50
|
|
|
| |
/* | /* |
CIMQualifier.h - Defines the CIM qualifiers class. | CIMQualifier.h - Defines the CIM qualifiers class. |
This class represents a CIM qualifiers. It is almost identical to |
|
CIMQualifierDecl except that it has no scope member. |
|
| |
*/ | */ |
| |
|
|
| |
/** Class CIMQualifier - This class defines the Pegasus implementation of the | /** Class CIMQualifier - This class defines the Pegasus implementation of the |
CIM CIMQualifier \Ref{QUALIFIER}. | CIM CIMQualifier \Ref{QUALIFIER}. |
|
This class represents a CIM qualifiers. It is almost identical to |
|
CIMQualifierDecl except that it has no scope member. \Ref{CIMQualifierDecl} |
|
This includes functions to create qualifiers and manipulate/test |
|
the individual components of the CIMQualifier. |
|
CIMQualifiers are accumulated into lists for use in CIMClasses and CIM Properties |
|
using the CIMQualifierList Class and its functions. \Ref{CIMQualifierList} |
*/ | */ |
class PEGASUS_COMMON_LINKAGE CIMQualifier | class PEGASUS_COMMON_LINKAGE CIMQualifier |
{ | { |
|
|
return *this; | return *this; |
} | } |
| |
/** CIMMethod |
/** getName - Returns the name field from the qualifier |
|
@return String containing the qualifier name. |
| |
*/ | */ |
const String& getName() const | const String& getName() const |
|
|
_rep->setName(name); | _rep->setName(name); |
} | } |
| |
/** getType - Gets the ATTN: |
/** getType - Gets the type field from the qualifier object. |
|
@return CIMType containing the type for this qualifier /Ref{CIMType}. |
| |
*/ | */ |
CIMType getType() const | CIMType getType() const |
|
|
} | } |
| |
/** isArray - Returns true if the qualifier is an array | /** isArray - Returns true if the qualifier is an array |
@return Boolean try if array qualifier. |
@return Boolean true if array qualifier. |
*/ | */ |
Boolean isArray() const | Boolean isArray() const |
{ | { |
|
|
return _rep->getPropagated(); | return _rep->getPropagated(); |
} | } |
| |
/** CIMMethod |
/** setPropagated - Sets the Propagated flag for the object. |
| |
*/ | */ |
void setPropagated(Boolean propagated) | void setPropagated(Boolean propagated) |
|
|
operator int() const { return _rep != 0; } | operator int() const { return _rep != 0; } |
| |
/** toXml- Converts the CIMQualifier object to XML. | /** toXml- Converts the CIMQualifier object to XML. |
|
@param out The array where the XML output is to be stored. |
| |
*/ | */ |
void toXml(Array<Sint8>& out) const | void toXml(Array<Sint8>& out) const |
|
|
| |
/** print - Converts the CIMQualifier object to XML and | /** print - Converts the CIMQualifier object to XML and |
sends it to cout. | sends it to cout. |
|
@SeeAlso toXML |
| |
*/ | */ |
void print(PEGASUS_STD(ostream) &o=PEGASUS_STD(cout)) const | void print(PEGASUS_STD(ostream) &o=PEGASUS_STD(cout)) const |
|
|
_rep->print(o); | _rep->print(o); |
} | } |
| |
/** toXml- Converts the CIMQualifier object to MOF. |
/** toMof- Converts the CIMQualifier object to MOF. |
|
@param out The Array where the MOF output is stored. |
|
Note that the result does not have a zero terminator. |
*/ | */ |
void toMof(Array<Sint8>& out) const | void toMof(Array<Sint8>& out) const |
{ | { |
|
|
} | } |
| |
/** printMOF - Converts the CIMQualifier object to XML and | /** printMOF - Converts the CIMQualifier object to XML and |
sends it to cout. |
sends it the stream defined. |
|
@param o Output stream for the MOF. The default is cout. |
*/ | */ |
void printMof(PEGASUS_STD(ostream) &o=PEGASUS_STD(cout)) const | void printMof(PEGASUS_STD(ostream) &o=PEGASUS_STD(cout)) const |
{ | { |
|
|
*/ | */ |
Boolean identical(const CIMConstQualifier& x) const; | Boolean identical(const CIMConstQualifier& x) const; |
| |
/** CIMMethod |
/** clone Creates an exact copy of the qualifier and returns the |
|
new object. |
|
@return CIMQualifier New Qualifier object. |
| |
*/ | */ |
CIMQualifier clone() const | CIMQualifier clone() const |