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

version 1.12.2.1, 2002/10/28 15:43:21 version 1.22, 2008/10/22 08:19:40
Line 1 
Line 1 
 //%/////////////////////////////////////////////////////////////////////////////  //%2006////////////////////////////////////////////////////////////////////////
 // //
 // Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM,  // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
 // The Open Group, Tivoli Systems  // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
   // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
   // IBM Corp.; EMC Corporation, The Open Group.
   // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
   // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
   // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
   // EMC Corporation; VERITAS Software Corporation; The Open Group.
   // Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
   // EMC Corporation; Symantec Corporation; The Open Group.
 // //
 // Permission is hereby granted, free of charge, to any person obtaining a copy // Permission is hereby granted, free of charge, to any person obtaining a copy
 // of this software and associated documentation files (the "Software"), to // of this software and associated documentation files (the "Software"), to
Line 21 
Line 29 
 // //
 //============================================================================== //==============================================================================
 // //
 // Author: Nitin Upasani, Hewlett-Packard Company (Nitin_Upasani@hp.com)  
 //  
 // Modified By: Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com)  
 //  
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
  
 #include "CIMParamValueRep.h" #include "CIMParamValueRep.h"
Line 44 
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 56 
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 72 
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::isNull() const  Boolean CIMParamValue::isUninitialized() const
 { {
     return (_rep == 0)? true : false;      return _rep == 0;
 }  
   
 Boolean CIMParamValue::identical(const CIMParamValue& x) const  
 {  
     x._checkRep();  
     _checkRep();  
     return _rep->identical(x._rep);  
 } }
  
 CIMParamValue CIMParamValue::clone() const CIMParamValue CIMParamValue::clone() const
 { {
       CheckRep(_rep);
     return CIMParamValue(_rep->clone());     return CIMParamValue(_rep->clone());
 } }
  
 void CIMParamValue::_checkRep() const  
 {  
     if (!_rep)  
         ThrowUninitializedHandle();  
 }  
   
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END


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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2