version 1.28, 2002/07/23 17:01:48
|
version 1.32, 2002/07/31 22:05:08
|
|
|
#define Pegasus_Method_h | #define Pegasus_Method_h |
| |
#include <Pegasus/Common/Config.h> | #include <Pegasus/Common/Config.h> |
|
#include <Pegasus/Common/Linkage.h> |
#include <Pegasus/Common/String.h> | #include <Pegasus/Common/String.h> |
|
#include <Pegasus/Common/CIMName.h> |
#include <Pegasus/Common/CIMParameter.h> | #include <Pegasus/Common/CIMParameter.h> |
#include <Pegasus/Common/CIMQualifier.h> | #include <Pegasus/Common/CIMQualifier.h> |
#include <Pegasus/Common/CIMType.h> | #include <Pegasus/Common/CIMType.h> |
|
|
@param type CIM data type of method to create | @param type CIM data type of method to create |
@param classOrigin | @param classOrigin |
@param propagated | @param propagated |
@return Throws IllegalName if name argument not legal CIM identifier. |
|
*/ | */ |
CIMMethod( | CIMMethod( |
const String& name, |
const CIMName& name, |
CIMType type, | CIMType type, |
const String& classOrigin = String::EMPTY, |
const CIMName& classOrigin = CIMName(), |
Boolean propagated = false); | Boolean propagated = false); |
| |
/** Desctructor. */ | /** Desctructor. */ |
|
|
CIMMethod& operator=(const CIMMethod& x); | CIMMethod& operator=(const CIMMethod& x); |
| |
/** getName - Gets the name of the method | /** getName - Gets the name of the method |
@return String with the name of the method |
@return CIMName with the name of the method |
*/ | */ |
const String& getName() const; |
const CIMName& getName() const; |
| |
/** setName - Set the method name | /** setName - Set the method name |
@param name | @param name |
@exception IllegalName if name argument not legal CIM identifier. |
|
*/ | */ |
void setName(const String& name); |
void setName(const CIMName& name); |
| |
/** getType - gets the method type | /** getType - gets the method type |
@return The CIM method type for this method. | @return The CIM method type for this method. |
|
|
| |
/** getClassOrigin - Returns the class in which this method | /** getClassOrigin - Returns the class in which this method |
was defined. | was defined. |
@return String containing the classOrigin field. |
@return CIMName containing the classOrigin field. |
*/ | */ |
const String& getClassOrigin() const; |
const CIMName& getClassOrigin() const; |
| |
/** setClassOrigin - Set the ClassOrigin attribute with | /** setClassOrigin - Set the ClassOrigin attribute with |
the classname defined on input | the classname defined on input |
@param classOrigin - String parameter defining the name |
@param classOrigin - CIMName parameter defining the name |
of the class origin | of the class origin |
*/ | */ |
void setClassOrigin(const String& classOrigin); |
void setClassOrigin(const CIMName& classOrigin); |
| |
/** getPropagated - Tests the propogated qualifier | /** getPropagated - Tests the propogated qualifier |
@return - returns True if method is propogated | @return - returns True if method is propogated |
|
|
@param name Name of qualifier to be found. | @param name Name of qualifier to be found. |
@return index of the parameter if found; otherwise PEG_NOT_FOUND. | @return index of the parameter if found; otherwise PEG_NOT_FOUND. |
*/ | */ |
Uint32 findQualifier(const String& name) const; |
Uint32 findQualifier(const CIMName& name) const; |
| |
/** getQualifier - Gets the CIMQualifier defined by the index | /** getQualifier - Gets the CIMQualifier defined by the index |
input as a parameter. | input as a 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 PEG_NOT_FOUND. | @return index of the parameter if found; otherwise PEG_NOT_FOUND. |
*/ | */ |
Uint32 findParameter(const String& name) const; |
Uint32 findParameter(const CIMName& name) const; |
| |
/** getParameter - Gets the parameter defined by the index | /** getParameter - Gets the parameter defined by the index |
input as a parameter. | input as a parameter. |
|
|
*/ | */ |
Uint32 getParameterCount() const; | Uint32 getParameterCount() const; |
| |
#ifdef PEGASUS_INTERNALONLY |
/** |
/** Returns true if CIMMethod refers to a null pointer */ |
Determines if the object has not been initialized. |
Boolean isNull() const; |
|
#endif |
@return True if the object has not been initialized, |
|
False otherwise |
|
*/ |
|
Boolean isUninitialized() const; |
| |
/** identical - Returns true if this method is identical to the | /** identical - Returns true if this method is identical to the |
one given by the argument x. | one given by the argument x. |
|
|
| |
CIMConstMethod(const CIMMethod& x); | CIMConstMethod(const CIMMethod& x); |
| |
// Throws IllegalName if name argument not legal CIM identifier. |
|
CIMConstMethod( | CIMConstMethod( |
const String& name, |
const CIMName& name, |
CIMType type, | CIMType type, |
const String& classOrigin = String::EMPTY, |
const CIMName& classOrigin = CIMName(), |
Boolean propagated = false); | Boolean propagated = false); |
| |
~CIMConstMethod(); | ~CIMConstMethod(); |
|
|
| |
CIMConstMethod& operator=(const CIMMethod& x); | CIMConstMethod& operator=(const CIMMethod& x); |
| |
const String& getName() const; |
const CIMName& getName() const; |
| |
CIMType getType() const; | CIMType getType() const; |
| |
const String& getClassOrigin() const; |
const CIMName& getClassOrigin() const; |
| |
Boolean getPropagated() const; | Boolean getPropagated() const; |
| |
Uint32 findQualifier(const String& name) const; |
Uint32 findQualifier(const CIMName& name) const; |
| |
CIMConstQualifier getQualifier(Uint32 pos) const; | CIMConstQualifier getQualifier(Uint32 pos) const; |
| |
Uint32 getQualifierCount() const; | Uint32 getQualifierCount() const; |
| |
Uint32 findParameter(const String& name) const; |
Uint32 findParameter(const CIMName& name) const; |
| |
CIMConstParameter getParameter(Uint32 pos) const; | CIMConstParameter getParameter(Uint32 pos) const; |
| |
Uint32 getParameterCount() const; | Uint32 getParameterCount() const; |
| |
#ifdef PEGASUS_INTERNALONLY |
Boolean isUninitialized() const; |
Boolean isNull() const; |
|
#endif |
|
| |
Boolean identical(const CIMConstMethod& x) const; | Boolean identical(const CIMConstMethod& x) const; |
| |