(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.20 and 1.21

version 1.20, 2001/12/22 02:15:15 version 1.21, 2002/01/07 21:27:00
Line 107 
Line 107 
     // Reject addition of references to non-associations:     // Reject addition of references to non-associations:
  
     if (!isAssociation() && x.getValue().getType() == CIMType::REFERENCE)     if (!isAssociation() && x.getValue().getType() == CIMType::REFERENCE)
         throw AddedReferenceToClass(_className);          throw AddedReferenceToClass(_reference.getClassName());
  
     // Set the class origin:     // Set the class origin:
     // ATTN: put this check in other places:     // ATTN: put this check in other places:
  
     if (x.getClassOrigin().size() == 0)     if (x.getClassOrigin().size() == 0)
         CIMProperty(x).setClassOrigin(_className);          CIMProperty(x).setClassOrigin(_reference.getClassName());
  
     // Add the property:     // Add the property:
  
Line 371 
Line 371 
     // Class opening element:     // Class opening element:
  
     out << "<CLASS ";     out << "<CLASS ";
     out << " NAME=\"" << _className << "\" ";      out << " NAME=\"" << _reference.getClassName() << "\" ";
  
     if (_superClassName.size())     if (_superClassName.size())
         out << " SUPERCLASS=\"" << _superClassName << "\" ";         out << " SUPERCLASS=\"" << _superClassName << "\" ";
Line 412 
Line 412 
 void CIMClassRep::toMof(Array<Sint8>& out) const void CIMClassRep::toMof(Array<Sint8>& out) const
 { {
     // Get and format the class qualifiers     // Get and format the class qualifiers
     out << "\n//    Class " << _className;      out << "\n//    Class " << _reference.getClassName();
     if (_qualifiers.getCount())     if (_qualifiers.getCount())
         out << "\n";         out << "\n";
     _qualifiers.toMof(out);     _qualifiers.toMof(out);
Line 421 
Line 421 
     out << "\n";     out << "\n";
  
     // output class statement     // output class statement
     out << "class " << _className;      out << "class " << _reference.getClassName();
  
     if (_superClassName.size())     if (_superClassName.size())
         out << " : " << _superClassName;         out << " : " << _superClassName;


Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2