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

Diff for /pegasus/src/Pegasus/Common/CIMClassRep.cpp between version 1.69 and 1.70

version 1.69, 2005/10/31 17:39:11 version 1.70, 2005/11/07 23:15:59
Line 49 
Line 49 
 #include "MofWriter.h" #include "MofWriter.h"
 #include <Pegasus/Common/Tracer.h> #include <Pegasus/Common/Tracer.h>
 #include <Pegasus/Common/MessageLoader.h> //l10n #include <Pegasus/Common/MessageLoader.h> //l10n
   #include "StrLit.h"
  
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
 PEGASUS_USING_STD; PEGASUS_USING_STD;
Line 544 
Line 545 
 { {
     // Class opening element:     // Class opening element:
  
     out << "<CLASS ";      out << STRLIT("<CLASS ");
     out << " NAME=\"" << _reference.getClassName() << "\" ";      out << STRLIT(" NAME=\"") << _reference.getClassName() << STRLIT("\" ");
  
     if (!_superClassName.isNull())     if (!_superClassName.isNull())
         out << " SUPERCLASS=\"" << _superClassName << "\" ";          out << STRLIT(" SUPERCLASS=\"") << _superClassName << STRLIT("\" ");
  
     out << ">\n";      out << STRLIT(">\n");
  
     // Qualifiers:     // Qualifiers:
  
Line 568 
Line 569 
  
     // Class closing element:     // Class closing element:
  
     out << "</CLASS>\n";      out << STRLIT("</CLASS>\n");
 } }
 /** toMof prepares an 8-bit string with the MOF for the class. /** toMof prepares an 8-bit string with the MOF for the class.
     The BNF for this is:     The BNF for this is:
Line 586 
Line 587 
 void CIMClassRep::toMof(Buffer& out) const void CIMClassRep::toMof(Buffer& out) const
 { {
     // Get and format the class qualifiers     // Get and format the class qualifiers
     out << "\n//    Class " << _reference.getClassName();      out << STRLIT("\n//    Class ") << _reference.getClassName();
     if (_qualifiers.getCount())     if (_qualifiers.getCount())
         out << "\n";          out.append('\n');
     out << "\n";      out.append('\n');
     _qualifiers.toMof(out);     _qualifiers.toMof(out);
  
     // Separate qualifiers from Class Name     // Separate qualifiers from Class Name
     out << "\n";      out.append('\n');
  
     // output class statement     // output class statement
     out << "class " << _reference.getClassName();      out << STRLIT("class ") << _reference.getClassName();
  
     if (!_superClassName.isNull())     if (!_superClassName.isNull())
         out << " : " << _superClassName;          out << STRLIT(" : ") << _superClassName;
  
     out << "\n{";      out << STRLIT("\n{");
  
     // format the Properties:     // format the Properties:
     for (Uint32 i = 0, n = _properties.size(); i < n; i++)     for (Uint32 i = 0, n = _properties.size(); i < n; i++)
Line 622 
Line 623 
     }     }
  
     // Class closing element:     // Class closing element:
     out << "\n};\n";      out << STRLIT("\n};\n");
 } }
  
  


Legend:
Removed from v.1.69  
changed lines
  Added in v.1.70

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2