version 1.5, 2002/02/22 02:48:01
|
version 1.9, 2002/05/17 16:58:07
|
|
|
#include <Pegasus/Common/Exception.h> | #include <Pegasus/Common/Exception.h> |
#include <Pegasus/Common/String.h> | #include <Pegasus/Common/String.h> |
#include <Pegasus/Common/Sharable.h> | #include <Pegasus/Common/Sharable.h> |
#include <Pegasus/Common/CIMParameter.h> |
|
#include <Pegasus/Common/CIMValue.h> | #include <Pegasus/Common/CIMValue.h> |
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
class CIMConstParameter; |
|
|
|
class PEGASUS_COMMON_LINKAGE CIMParamValueRep : public Sharable | class PEGASUS_COMMON_LINKAGE CIMParamValueRep : public Sharable |
{ | { |
public: | public: |
| |
CIMParamValueRep( | CIMParamValueRep( |
CIMParameter parameter, |
String parameterName, |
CIMValue value); |
CIMValue value, |
|
Boolean isTyped=true); |
| |
~CIMParamValueRep(); | ~CIMParamValueRep(); |
| |
const CIMParameter & getParameter() const |
const String & getParameterName() const |
{ | { |
return _parameter; |
return _parameterName; |
} | } |
| |
const CIMValue & getValue() const | const CIMValue & getValue() const |
|
|
return _value; | return _value; |
} | } |
| |
void setParameter(CIMParameter& parameter); |
Boolean isTyped() const |
|
{ |
|
return _isTyped; |
|
} |
|
|
|
void setParameterName(String& parameterName); |
| |
void setValue(CIMValue& value); | void setValue(CIMValue& value); |
| |
void toXml(Array<Sint8>& out) const; |
void setIsTyped(Boolean isTyped); |
| |
void print(PEGASUS_STD(ostream) &o=PEGASUS_STD(cout)) const; |
void toXml(Array<Sint8>& out) const; |
| |
Boolean identical(const CIMParamValueRep* x) const; | Boolean identical(const CIMParamValueRep* x) const; |
| |
|
|
| |
CIMParamValueRep(const CIMParamValueRep& x); | CIMParamValueRep(const CIMParamValueRep& x); |
| |
CIMParamValueRep& operator=(const CIMParamValueRep& x); |
// This method is declared and made private so that the compiler does |
|
// not implicitly define a default copy constructor. |
|
CIMParamValueRep& operator=(const CIMParamValueRep& x) |
|
{ |
|
//PEGASUS_ASSERT(0); |
|
return *this; |
|
} |
| |
CIMParameter _parameter; |
String _parameterName; |
CIMValue _value; | CIMValue _value; |
|
Boolean _isTyped; |
}; | }; |
| |
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |