#include <OW_CIMMethod.hpp>
Inheritance diagram for OW_NAMESPACE::CIMMethod:
Public Types | |
typedef COWIntrusiveReference< METHData > CIMMethod::* | safe_bool |
Public Member Functions | |
CIMMethod () | |
Create a new CIMMethod object. | |
CIMMethod (CIMNULL_t) | |
Create a NULL CIMMethod object. | |
CIMMethod (const CIMName &name) | |
Create an CIMMethod with a name. | |
CIMMethod (const char *name) | |
Create an CIMMethod with a name. | |
CIMMethod (const CIMMethod &arg) | |
Copy constructor. | |
~CIMMethod () | |
Destroy this CIMMethod object. | |
virtual void | setNull () |
Set this to a null object. | |
CIMMethod & | operator= (const CIMMethod &arg) |
Assignment operator. | |
CIMMethod & | setQualifiers (const CIMQualifierArray &quals) |
Set the qualifiers for this method. | |
CIMMethod & | addQualifier (const CIMQualifier &qual) |
Add a qualifier to this CIMMethod. | |
CIMQualifierArray | getQualifiers () const |
Get the qualifiers for this method. | |
CIMQualifier | getQualifier (const CIMName &name) const |
Get the qualifier associated with a specified name. | |
String | getOriginClass () const |
Get the origin class for this method. | |
CIMMethod & | setOriginClass (const CIMName &originCls) |
Set thr origin class for this method. | |
CIMMethod & | addParameter (const CIMParameter ¶m) |
Add a parameter to this CIMMethod. | |
CIMMethod & | setParameters (const CIMParameterArray &inParms) |
Set the parameters for this method. | |
CIMParameterArray | getParameters () const |
Get the parameters for this method. | |
CIMParameterArray | getINParameters () const |
Get the IN parameters for this method. | |
CIMParameterArray | getOUTParameters () const |
Get the OUT parameters for this method. | |
CIMMethod & | setReturnType (const CIMDataType &type) |
Set the return data type for this parameter. | |
CIMDataType | getReturnType () const |
Int32 | getReturnDataSize () const |
CIMMethod & | setOverridingMethod (const CIMName &omname) |
Set name of overriding method. | |
String | getOverridingMethod () const |
CIMMethod & | setPropagated (bool propagated=true) |
Set the propagated flag for this method. | |
bool | getPropagated () const |
Get the propagated flag. | |
CIMMethod | clone (WBEMFlags::EIncludeQualifiersFlag includeQualifiers=WBEMFlags::E_INCLUDE_QUALIFIERS, WBEMFlags::EIncludeClassOriginFlag includeClassOrigin=WBEMFlags::E_INCLUDE_CLASS_ORIGIN) const |
Create an CIMMethod object based on this one, using the criteria specified in the parameters. | |
virtual String | getName () const |
virtual void | setName (const CIMName &name) |
Set the name of this method. | |
virtual void | readObject (std::istream &istrm) |
Read this object from an input stream. | |
virtual void | writeObject (std::ostream &ostrm) const |
Write this object to an output stream. | |
virtual String | toMOF () const |
virtual String | toString () const |
operator safe_bool () const | |
bool | operator! () const |
Protected Attributes | |
COWIntrusiveReference< METHData > | m_pdata |
Friends | |
OW_COMMON_API bool | operator< (const CIMMethod &x, const CIMMethod &y) |
Classes | |
struct | METHData |
CIMMethods are ref counted, copy on write objects. It is possible to have an CIMMethod object that is NULL. The method to check for this condition is as follows:
CIMMethod ch = cc.getMethod(...); if (!ch) { // Null method } else { // Valid method }
Definition at line 65 of file OW_CIMMethod.hpp.
|
Definition at line 255 of file OW_CIMMethod.hpp. |
|
Create a new CIMMethod object.
Definition at line 83 of file OW_CIMMethod.cpp. Referenced by clone(). |
|
Create a NULL CIMMethod object.
Definition at line 88 of file OW_CIMMethod.cpp. |
|
Create an CIMMethod with a name.
Definition at line 99 of file OW_CIMMethod.cpp. |
|
Create an CIMMethod with a name.
Definition at line 93 of file OW_CIMMethod.cpp. References m_pdata. |
|
Copy constructor.
Definition at line 105 of file OW_CIMMethod.cpp. |
|
Destroy this CIMMethod object.
Definition at line 110 of file OW_CIMMethod.cpp. |
|
Add a parameter to this CIMMethod.
Definition at line 176 of file OW_CIMMethod.cpp. References m_pdata. |
|
Add a qualifier to this CIMMethod.
Definition at line 128 of file OW_CIMMethod.cpp. References m_pdata. Referenced by OW_NAMESPACE::MOF::CIMOMVisitor::VisitMethodDeclaration(). |
|
Create an CIMMethod object based on this one, using the criteria specified in the parameters.
Definition at line 264 of file OW_CIMMethod.cpp. References CIMMethod(), OW_NAMESPACE::CIMNULL, and m_pdata. |
|
Get the IN parameters for this method.
Definition at line 196 of file OW_CIMMethod.cpp. References OW_NAMESPACE::CIMQualifier::CIM_QUAL_IN, i, m_pdata, and OW_NAMESPACE::Array< T >::push_back(). |
|
Implements OW_NAMESPACE::CIMElement. Definition at line 302 of file OW_CIMMethod.cpp. References m_pdata. Referenced by OW_NAMESPACE::CIMtoXML(), OW_NAMESPACE::ProviderManager::getMethodProvider(), and OW_NAMESPACE::CIMClass::setMethod(). |
|
Get the origin class for this method.
Definition at line 163 of file OW_CIMMethod.cpp. References m_pdata. |
|
Get the OUT parameters for this method.
Definition at line 217 of file OW_CIMMethod.cpp. References OW_NAMESPACE::CIMQualifier::CIM_QUAL_OUT, i, m_pdata, and OW_NAMESPACE::Array< T >::push_back(). |
|
Definition at line 258 of file OW_CIMMethod.cpp. References m_pdata. |
|
Get the parameters for this method.
Definition at line 190 of file OW_CIMMethod.cpp. References m_pdata. |
|
Get the propagated flag.
Definition at line 296 of file OW_CIMMethod.cpp. References m_pdata. |
|
Get the qualifier associated with a specified name.
Definition at line 148 of file OW_CIMMethod.cpp. |
|
Get the qualifiers for this method.
Definition at line 142 of file OW_CIMMethod.cpp. References m_pdata. |
|
Definition at line 245 of file OW_CIMMethod.cpp. References m_pdata. |
|
Definition at line 239 of file OW_CIMMethod.cpp. References m_pdata. |
|
Definition at line 256 of file OW_CIMMethod.hpp. References m_pdata. |
|
Definition at line 258 of file OW_CIMMethod.hpp. |
|
Assignment operator.
Definition at line 121 of file OW_CIMMethod.cpp. References m_pdata. |
|
Read this object from an input stream.
Implements OW_NAMESPACE::SerializableIFC. |
|
Set the name of this method.
Implements OW_NAMESPACE::CIMElement. Definition at line 308 of file OW_CIMMethod.cpp. |
|
Set this to a null object. All subsequent operation will fail after this method is called. Implements OW_NAMESPACE::CIMBase. Definition at line 115 of file OW_CIMMethod.cpp. References m_pdata. |
|
Set thr origin class for this method.
Definition at line 169 of file OW_CIMMethod.cpp. References m_pdata. |
|
Set name of overriding method.
Definition at line 251 of file OW_CIMMethod.cpp. References m_pdata. |
|
Set the parameters for this method.
Definition at line 183 of file OW_CIMMethod.cpp. References m_pdata. |
|
Set the propagated flag for this method.
Definition at line 289 of file OW_CIMMethod.cpp. References m_pdata. |
|
Set the qualifiers for this method.
Definition at line 135 of file OW_CIMMethod.cpp. References m_pdata. |
|
Set the return data type for this parameter.
Definition at line 232 of file OW_CIMMethod.cpp. |
|
Implements OW_NAMESPACE::CIMBase. Definition at line 358 of file OW_CIMMethod.cpp. |
|
Reimplemented from OW_NAMESPACE::CIMElement. Definition at line 397 of file OW_CIMMethod.cpp. References m_pdata. |
|
Write this object to an output stream.
Implements OW_NAMESPACE::SerializableIFC. |
|
Definition at line 404 of file OW_CIMMethod.cpp. |
|