(file) Return to CIMParamValue.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/CIMParamValue.cpp between version 1.2 and 1.4

version 1.2, 2001/12/13 14:53:52 version 1.4, 2002/05/03 01:39:09
Line 23 
Line 23 
 // //
 // Author: Nitin Upasani, Hewlett-Packard Company (Nitin_Upasani@hp.com) // Author: Nitin Upasani, Hewlett-Packard Company (Nitin_Upasani@hp.com)
 // //
 // Modified By:  // Modified By: Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com)
 // //
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
  
   #include "CIMParamValueRep.h"
 #include "CIMParamValue.h" #include "CIMParamValue.h"
  
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
Line 35 
Line 36 
 # include "ArrayImpl.h" # include "ArrayImpl.h"
 #undef PEGASUS_ARRAY_T #undef PEGASUS_ARRAY_T
  
 Boolean CIMParamValue::identical(const CIMConstParamValue& x) const  
   CIMParamValue::CIMParamValue()
       : _rep(0)
   {
   }
   
   CIMParamValue::CIMParamValue(const CIMParamValue& x)
   {
       Inc(_rep = x._rep);
   }
   
   CIMParamValue::CIMParamValue(CIMParamValueRep* rep)
       : _rep(rep)
   {
   }
   
   CIMParamValue& CIMParamValue::operator=(const CIMParamValue& x)
   {
       if (x._rep != _rep)
       {
           Dec(_rep);
           Inc(_rep = x._rep);
       }
       return *this;
   }
   
   CIMParamValue::CIMParamValue(
       String parameterName,
       CIMValue value,
       Boolean isTyped)
   {
       _rep = new CIMParamValueRep(parameterName, value, isTyped);
   }
   
   CIMParamValue::~CIMParamValue()
   {
       Dec(_rep);
   }
   
   String CIMParamValue::getParameterName() const
   {
       _checkRep();
       return _rep->getParameterName();
   }
   
   CIMValue CIMParamValue::getValue() const
   {
       _checkRep();
       return _rep->getValue();
   }
   
   Boolean CIMParamValue::isTyped() const
   {
       _checkRep();
       return _rep->isTyped();
   }
   
   void CIMParamValue::setParameterName(String& parameterName)
   {
       _checkRep();
       _rep->setParameterName(parameterName);
   }
   
   void CIMParamValue::setValue(CIMValue& value)
   {
       _checkRep();
       _rep->setValue(value);
   }
   
   void CIMParamValue::setIsTyped(Boolean isTyped)
   {
       _checkRep();
       _rep->setIsTyped(isTyped);
   }
   
   CIMParamValue::operator int() const
   {
       return (_rep != 0);
   }
   
   void CIMParamValue::toXml(Array<Sint8>& out) const
   {
       _checkRep();
       _rep->toXml(out);
   }
   
   void CIMParamValue::print(PEGASUS_STD(ostream) &o) const
   {
       _checkRep();
       _rep->print(o);
   }
   
   Boolean CIMParamValue::identical(const CIMParamValue& x) const
 { {
     x._checkRep();     x._checkRep();
     _checkRep();     _checkRep();
     return _rep->identical(x._rep);     return _rep->identical(x._rep);
 } }
  
   CIMParamValue CIMParamValue::clone() const
   {
       return CIMParamValue(_rep->clone());
   }
   
   void CIMParamValue::_checkRep() const
   {
       if (!_rep)
           ThrowUnitializedHandle();
   }
   
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END


Legend:
Removed from v.1.2  
changed lines
  Added in v.1.4

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2