(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.22 and 1.24.2.2

version 1.22, 2005/05/17 14:52:26 version 1.24.2.2, 2006/02/10 16:09:34
Line 1 
Line 1 
 //%2005////////////////////////////////////////////////////////////////////////  //%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.
Line 8 
Line 8 
 // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
 // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 // EMC Corporation; VERITAS Software Corporation; The Open Group. // 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 41 
Line 43 
 #include <cstdio> #include <cstdio>
 #include "XmlWriter.h" #include "XmlWriter.h"
 #include "CIMParamValueRep.h" #include "CIMParamValueRep.h"
   #include "StrLit.h"
  
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
  
Line 70 
Line 73 
 //         %ParamType;> //         %ParamType;>
 // //
 //------------------------------------------------------------------------------ //------------------------------------------------------------------------------
 void CIMParamValueRep::toXml(Array<char>& out) const  void CIMParamValueRep::toXml(Buffer& out) const
 { {
     out << "<PARAMVALUE NAME=\"" << _parameterName << "\"";      out << STRLIT("<PARAMVALUE NAME=\"") << _parameterName;
       out.append('"');
  
     CIMType type = _value.getType();     CIMType type = _value.getType();
  
Line 85 
Line 89 
         //   output the real type         //   output the real type
         if (type == CIMTYPE_OBJECT)         if (type == CIMTYPE_OBJECT)
         {         {
             out << " PARAMTYPE=\"string\"";              out << STRLIT(" PARAMTYPE=\"string\" EMBEDDEDOBJECT=\"object\"");
             out << " EMBEDDEDOBJECT=\"object\"";  
         }         }
   #ifdef PEGASUS_EMBEDDED_INSTANCE_SUPPORT
           else if (type == CIMTYPE_INSTANCE)
           {
               out << STRLIT(" PARAMTYPE=\"string\"");
               out << STRLIT(" EMBEDDEDOBJECT=\"instance\"");
           }
   #endif // PEGASUS_EMBEDDED_INSTANCE_SUPPORT
         else         else
         {         {
             out << " PARAMTYPE=\"" << cimTypeToString (type) << "\"";              out << STRLIT(" PARAMTYPE=\"") << cimTypeToString (type);
               out.append('"');
         }         }
     }     }
  
     out << ">\n";      out << STRLIT(">\n");
     XmlWriter::appendValueElement(out, _value);     XmlWriter::appendValueElement(out, _value);
  
     out << "</PARAMVALUE>\n";      out << STRLIT("</PARAMVALUE>\n");
 } }
  
 CIMParamValueRep::CIMParamValueRep() CIMParamValueRep::CIMParamValueRep()


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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2