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

Diff for /pegasus/src/Pegasus/Common/CIMMethodRep.cpp between version 1.47 and 1.48

version 1.47, 2005/10/31 17:39:11 version 1.48, 2005/11/07 23:15:59
Line 46 
Line 46 
 #include "XmlWriter.h" #include "XmlWriter.h"
 #include "MofWriter.h" #include "MofWriter.h"
 #include <Pegasus/Common/MessageLoader.h> //l10n #include <Pegasus/Common/MessageLoader.h> //l10n
   #include "StrLit.h"
  
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
  
Line 216 
Line 217 
  
 void CIMMethodRep::toXml(Buffer& out) const void CIMMethodRep::toXml(Buffer& out) const
 { {
     out << "<METHOD";      out << STRLIT("<METHOD NAME=\"") << _name;
       out.append('"');
  
     out << " NAME=\"" << _name << "\"";      out << STRLIT(" TYPE=\"") << cimTypeToString(_type);
       out.append('"');
     out << " TYPE=\"" << cimTypeToString (_type) << "\"";  
  
     if (!_classOrigin.isNull())     if (!_classOrigin.isNull())
         out << " CLASSORIGIN=\"" << _classOrigin << "\"";      {
           out << STRLIT(" CLASSORIGIN=\"") << _classOrigin;
           out.append('"');
       }
  
     if (_propagated != false)     if (_propagated != false)
         out << " PROPAGATED=\"" << _toString(_propagated) << "\"";      {
           out << STRLIT(" PROPAGATED=\"") << _toString(_propagated);
           out.append('"');
       }
  
     out << ">\n";      out << STRLIT(">\n");
  
     _qualifiers.toXml(out);     _qualifiers.toXml(out);
  
     for (Uint32 i = 0, n = _parameters.size(); i < n; i++)     for (Uint32 i = 0, n = _parameters.size(); i < n; i++)
         XmlWriter::appendParameterElement(out, _parameters[i]);         XmlWriter::appendParameterElement(out, _parameters[i]);
  
     out << "</METHOD>\n";      out << STRLIT("</METHOD>\n");
 } }
  
 /** /**
Line 251 
Line 258 
 { {
     // Output the qualifier list starting on new line     // Output the qualifier list starting on new line
     if (_qualifiers.getCount())     if (_qualifiers.getCount())
         out << "\n";          out.append('\n');
  
     _qualifiers.toMof(out);     _qualifiers.toMof(out);
  
     // output the type, MethodName and ParmeterList left enclosure     // output the type, MethodName and ParmeterList left enclosure
     out << "\n" << cimTypeToString (_type) << " " << _name << "(";      out.append('\n');
       out << cimTypeToString(_type);
       out.append(' ');
       out << _name;
       out.append('(');
  
     // output the param list separated by commas.     // output the param list separated by commas.
  
Line 264 
Line 275 
     {     {
         // If not first, output comma separator         // If not first, output comma separator
         if (i)         if (i)
             out << ", ";              out << STRLIT(", ");
  
         MofWriter::appendParameterElement(out, _parameters[i]);         MofWriter::appendParameterElement(out, _parameters[i]);
     }     }
  
     // output the parameterlist and method terminator     // output the parameterlist and method terminator
     out << ");";      out << STRLIT(");");
 } }
  
  


Legend:
Removed from v.1.47  
changed lines
  Added in v.1.48

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2