(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.15.18.1 and 1.22

version 1.15.18.1, 2006/02/10 16:09:34 version 1.22, 2008/10/22 08:19:40
Line 29 
Line 29 
 // //
 //============================================================================== //==============================================================================
 // //
 // Author: Nitin Upasani, Hewlett-Packard Company (Nitin_Upasani@hp.com)  
 //  
 // Modified By: Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com)  
 //              Carol Ann Krug Graves, Hewlett-Packard Company  
 //                (carolann_graves@hp.com)  
 //  
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
  
 #include "CIMParamValueRep.h" #include "CIMParamValueRep.h"
Line 54 
Line 48 
  
 CIMParamValue::CIMParamValue(const CIMParamValue& x) CIMParamValue::CIMParamValue(const CIMParamValue& x)
 { {
     Inc(_rep = x._rep);      _rep = x._rep;
       if (_rep)
           _rep->Inc();
 } }
  
 CIMParamValue::CIMParamValue(CIMParamValueRep* rep) CIMParamValue::CIMParamValue(CIMParamValueRep* rep)
Line 66 
Line 62 
 { {
     if (x._rep != _rep)     if (x._rep != _rep)
     {     {
         Dec(_rep);          if (_rep)
         Inc(_rep = x._rep);              _rep->Dec();
           _rep = x._rep;
           if (_rep)
               _rep->Inc();
     }     }
     return *this;     return *this;
 } }
Line 82 
Line 81 
  
 CIMParamValue::~CIMParamValue() CIMParamValue::~CIMParamValue()
 { {
     Dec(_rep);      if (_rep)
           _rep->Dec();
 } }
  
 String CIMParamValue::getParameterName() const String CIMParamValue::getParameterName() const
 { {
     _checkRep();      CheckRep(_rep);
     return _rep->getParameterName();     return _rep->getParameterName();
 } }
  
 CIMValue CIMParamValue::getValue() const CIMValue CIMParamValue::getValue() const
 { {
     _checkRep();      CheckRep(_rep);
     return _rep->getValue();     return _rep->getValue();
 } }
  
 Boolean CIMParamValue::isTyped() const Boolean CIMParamValue::isTyped() const
 { {
     _checkRep();      CheckRep(_rep);
     return _rep->isTyped();     return _rep->isTyped();
 } }
  
 void CIMParamValue::setParameterName(String& parameterName) void CIMParamValue::setParameterName(String& parameterName)
 { {
     _checkRep();      CheckRep(_rep);
     _rep->setParameterName(parameterName);     _rep->setParameterName(parameterName);
 } }
  
 void CIMParamValue::setValue(CIMValue& value) void CIMParamValue::setValue(CIMValue& value)
 { {
     _checkRep();      CheckRep(_rep);
     _rep->setValue(value);     _rep->setValue(value);
 } }
  
 void CIMParamValue::setIsTyped(Boolean isTyped) void CIMParamValue::setIsTyped(Boolean isTyped)
 { {
     _checkRep();      CheckRep(_rep);
     _rep->setIsTyped(isTyped);     _rep->setIsTyped(isTyped);
 } }
  
 Boolean CIMParamValue::isUninitialized() const Boolean CIMParamValue::isUninitialized() const
 { {
     return (_rep == 0)? true : false;      return _rep == 0;
 } }
  
 CIMParamValue CIMParamValue::clone() const CIMParamValue CIMParamValue::clone() const
 { {
       CheckRep(_rep);
     return CIMParamValue(_rep->clone());     return CIMParamValue(_rep->clone());
 } }
  
 void CIMParamValue::_checkRep() const  
 {  
     if (!_rep)  
         throw UninitializedObjectException();  
 }  
   
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END


Legend:
Removed from v.1.15.18.1  
changed lines
  Added in v.1.22

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2