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

Diff for /pegasus/src/Pegasus/Common/CIMParamValueRep.cpp between version 1.17 and 1.32

version 1.17, 2003/10/22 14:26:02 version 1.32, 2008/10/22 08:19:40
Line 1 
Line 1 
 //%2003////////////////////////////////////////////////////////////////////////  //%2006////////////////////////////////////////////////////////////////////////
 // //
 // Copyright (c) 2000, 2001, 2002  BMC Software, Hewlett-Packard Development  // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
 // Company, L. P., IBM Corp., 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.; // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L. P.;
 // IBM Corp.; EMC Corporation, The Open Group. // 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 23 
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 <Pegasus/Common/Config.h> #include <Pegasus/Common/Config.h>
 #include <cstdio> #include <cstdio>
 #include "XmlWriter.h"  
 #include "CIMParamValueRep.h" #include "CIMParamValueRep.h"
   #include "StrLit.h"
  
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
  
Line 42 
Line 42 
     String parameterName,     String parameterName,
     CIMValue value,     CIMValue value,
     Boolean isTyped)     Boolean isTyped)
     : _parameterName(parameterName), _value(value), _isTyped(isTyped)      : _parameterName(parameterName), _value(value), _isTyped(isTyped),
 {        _refCounter(1)
 }  
   
 CIMParamValueRep::~CIMParamValueRep()  
 {  
 }  
   
 //------------------------------------------------------------------------------  
 //  
 //     <!ELEMENT PARAMVALUE (VALUE|VALUE.REFERENCE|VALUE.ARRAY|VALUE.REFARRAY)?>  
 //     <!ATTLIST PARAMVALUE  
 //         %CIMName;  
 //         %ParamType;>  
 //  
 //------------------------------------------------------------------------------  
 void CIMParamValueRep::toXml(Array<Sint8>& out) const  
 { {
     out << "<PARAMVALUE NAME=\"" << _parameterName << "\"";      // ensure parameterName is not null
       if (parameterName.size() == 0)
     CIMType type = _value.getType();  
   
     if (_isTyped)  
     {     {
         out << " PARAMTYPE=\"" << cimTypeToString (type) << "\"";          throw UninitializedObjectException();
     }  
   
     out << ">\n";  
     XmlWriter::appendValueElement(out, _value);  
   
     out << "</PARAMVALUE>\n";  
 } }
   
 CIMParamValueRep::CIMParamValueRep()  
 {  
 } }
  
 CIMParamValueRep::CIMParamValueRep(const CIMParamValueRep& x) : CIMParamValueRep::CIMParamValueRep(const CIMParamValueRep& x) :
     Sharable(),  
     _parameterName(x._parameterName),     _parameterName(x._parameterName),
     _value(x._value),     _value(x._value),
     _isTyped(x._isTyped)      _isTyped(x._isTyped),
       _refCounter(1)
 { {
 } }
  
 void CIMParamValueRep::setParameterName(String& parameterName) void CIMParamValueRep::setParameterName(String& parameterName)
 { {
       // ensure parameterName is not null
       if (parameterName.size() == 0)
       {
           throw UninitializedObjectException();
       }
   
     _parameterName = parameterName;     _parameterName = parameterName;
 } }
  


Legend:
Removed from v.1.17  
changed lines
  Added in v.1.32

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2