(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.46 and 1.46.2.2

version 1.46, 2005/05/17 15:47:12 version 1.46.2.2, 2005/09/30 20:35:55
Line 214 
Line 214 
     return x ? "true" : "false";     return x ? "true" : "false";
 } }
  
 void CIMMethodRep::toXml(Array<char>& out) const  void CIMMethodRep::toXml(Buffer& out) const
 { {
     out << "<METHOD";      out << LIT("<METHOD");
       out << LIT(" NAME=\"") << _name;
       out.append('"');
  
     out << " NAME=\"" << _name << "\"";      out << LIT(" TYPE=\"") << cimTypeToString (_type);
       out.append('"');
     out << " TYPE=\"" << cimTypeToString (_type) << "\"";  
  
     if (!_classOrigin.isNull())     if (!_classOrigin.isNull())
         out << " CLASSORIGIN=\"" << _classOrigin << "\"";      {
           out << LIT(" CLASSORIGIN=\"") << _classOrigin;
           out.append('"');
       }
  
     if (_propagated != false)     if (_propagated != false)
         out << " PROPAGATED=\"" << _toString(_propagated) << "\"";      {
           out << LIT(" PROPAGATED=\"") << _toString(_propagated);
           out.append('"');
       }
  
     out << ">\n";      out << LIT(">\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 << LIT("</METHOD>\n");
 } }
  
 /** /**
Line 247 
Line 254 
     Format with qualifiers on one line and declaration on another. Start     Format with qualifiers on one line and declaration on another. Start
     with newline but none at the end.     with newline but none at the end.
 */ */
 void CIMMethodRep::toMof(Array<char>& out) const   //ATTNKS:  void CIMMethodRep::toMof(Buffer& out) const   //ATTNKS:
 { {
     // 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 << LIT(", ");
  
         MofWriter::appendParameterElement(out, _parameters[i]);         MofWriter::appendParameterElement(out, _parameters[i]);
     }     }
  
     // output the parameterlist and method terminator     // output the parameterlist and method terminator
     out << ");";      out << LIT(");");
 } }
  
  


Legend:
Removed from v.1.46  
changed lines
  Added in v.1.46.2.2

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2