version 1.6, 2001/04/27 00:01:00
|
version 1.13, 2001/05/24 00:48:35
|
|
|
_rep->setPropagated(propagated); | _rep->setPropagated(propagated); |
} | } |
| |
/** CIMMethod addQualifier - |
/** CIMMethod addQualifier - Adds a Qualifier to the method object. |
@parm CIMQualifier to add |
|
@param CIMQualifier to be added | @param CIMQualifier to be added |
@return Throws AlreadyExists excetpion if the qualifier already exists | @return Throws AlreadyExists excetpion if the qualifier already exists |
in the method | in the method |
|
|
| |
/** CIMMethod findQualifier - returns the position of the qualifier with | /** CIMMethod findQualifier - returns the position of the qualifier with |
the given name. | the given name. |
@param name - name of qualifier to be found. |
@param name Name of qualifier to be found. |
@return index of the parameter if found; otherwise Uint32(-1). |
@return index of the parameter if found; otherwise PEG_NOT_FOUND. |
*/ | */ |
Uint32 findQualifier(const String& name) | Uint32 findQualifier(const String& name) |
{ | { |
|
|
return _rep->findQualifier(name); | return _rep->findQualifier(name); |
} | } |
| |
|
/** existsQualifier - returns the position of the qualifier with |
|
the given name. |
|
@param name Name of qualifier to be found. |
|
@return index of the parameter if found; otherwise PEG_NOT_FOUND. |
|
*/ |
|
Boolean existsQualifier(const String& name) |
|
{ |
|
_checkRep(); |
|
return _rep->existsQualifier(name); |
|
} |
|
|
|
Boolean existsQualifier(const String& name) const |
|
{ |
|
_checkRep(); |
|
return _rep->existsQualifier(name); |
|
} |
|
|
|
|
/** CIMMethod getQualifier - Gets the CIMQualifier defined by the index | /** CIMMethod getQualifier - Gets the CIMQualifier defined by the index |
input as a parameter. | input as a parameter. |
@param Index of the qualifier requested. | @param Index of the qualifier requested. |
|
|
return _rep->getQualifier(pos); | return _rep->getQualifier(pos); |
} | } |
| |
|
/** removeQualifier - Removes the CIMQualifier defined by the |
|
position input as a parameter. |
|
@param Position of the qualifier requested. |
|
@return CIMQualifier object or exception |
|
@exception OutOfBounds exception if the index is outside the range of |
|
parameters available from the CIMMethod. |
|
*/ |
|
void removeQualifier(Uint32 pos) |
|
{ |
|
_checkRep(); |
|
_rep->removeQualifier(pos); |
|
} |
|
|
|
|
/** CIMMethod getQualifierCount - Returns the number of Qualifiers attached | /** CIMMethod getQualifierCount - Returns the number of Qualifiers attached |
to this method. | to this method. |
@return integer representing number of Qualifiers. | @return integer representing number of Qualifiers. |
|
|
| |
/** CIMMethod findParameter - Finds the parameter whose name is given | /** CIMMethod findParameter - Finds the parameter whose name is given |
by the name parameter. | by the name parameter. |
@param name - name of parameter to be found. |
@param name Name of parameter to be found. |
@return index of the parameter if found; otherwise Uint32(-1). |
@return index of the parameter if found; otherwise PEG_NOT_FOUND. |
*/ | */ |
Uint32 findParameter(const String& name) | Uint32 findParameter(const String& name) |
{ | { |
|
|
} | } |
| |
/** method print - prints this method (in CIM encoded form). */ | /** method print - prints this method (in CIM encoded form). */ |
void print(std::ostream &o=std::cout) const |
void print(PEGASUS_STD(ostream) &o=PEGASUS_STD(cout)) const |
{ | { |
_checkRep(); | _checkRep(); |
_rep->print(o); | _rep->print(o); |
|
|
{ | { |
} | } |
| |
explicit CIMMethod(const CIMConstMethod& x); |
PEGASUS_EXPLICIT CIMMethod(const CIMConstMethod& x); |
| |
void _checkRep() const | void _checkRep() const |
{ | { |
if (!_rep) | if (!_rep) |
throw UnitializedHandle(); |
ThrowUnitializedHandle(); |
} | } |
| |
CIMMethodRep* _rep; | CIMMethodRep* _rep; |
|
|
_rep->toXml(out); | _rep->toXml(out); |
} | } |
| |
void print(std::ostream &o=std::cout) const |
void print(PEGASUS_STD(ostream) &o=PEGASUS_STD(cout)) const |
{ | { |
_checkRep(); | _checkRep(); |
_rep->print(o); | _rep->print(o); |
|
|
void _checkRep() const | void _checkRep() const |
{ | { |
if (!_rep) | if (!_rep) |
throw UnitializedHandle(); |
ThrowUnitializedHandle(); |
} | } |
| |
CIMMethodRep* _rep; | CIMMethodRep* _rep; |
|
|
friend class CIMMethodRep; | friend class CIMMethodRep; |
}; | }; |
| |
|
#define PEGASUS_ARRAY_T CIMMethod |
|
# include "ArrayInter.h" |
|
#undef PEGASUS_ARRAY_T |
|
|
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |
| |
#endif /* Pegasus_Method_h */ | #endif /* Pegasus_Method_h */ |