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

Diff for /pegasus/src/Pegasus/Common/CIMParameterRep.cpp between version 1.13 and 1.18

version 1.13, 2002/02/25 17:41:54 version 1.18, 2002/05/15 10:34:28
Line 29 
Line 29 
 #include <Pegasus/Common/Config.h> #include <Pegasus/Common/Config.h>
 #include <cstdio> #include <cstdio>
 #include "CIMParameter.h" #include "CIMParameter.h"
   #include "CIMParameterRep.h"
 #include "Indentor.h" #include "Indentor.h"
 #include "CIMName.h" #include "CIMName.h"
 #include "CIMScope.h" #include "CIMScope.h"
Line 104 
Line 105 
         nameSpace,         nameSpace,
         CIMScope::PARAMETER,         CIMScope::PARAMETER,
         false,         false,
         dummy);          dummy,
           true);
 } }
  
 void CIMParameterRep::toXml(Array<Sint8>& out) const void CIMParameterRep::toXml(Array<Sint8>& out) const
Line 115 
Line 117 
  
         out << " NAME=\"" << _name << "\" ";         out << " NAME=\"" << _name << "\" ";
  
         out << " TYPE=\"" << TypeToString(_type) << "\"";          out << " TYPE=\"" << _type.toString() << "\"";
  
         if (_arraySize)         if (_arraySize)
         {         {
Line 145 
Line 147 
     {     {
         out << "<PARAMETER";         out << "<PARAMETER";
         out << " NAME=\"" << _name << "\" ";         out << " NAME=\"" << _name << "\" ";
         out << " TYPE=\"" << TypeToString(_type) << "\"";          out << " TYPE=\"" << _type.toString() << "\"";
         out << ">\n";         out << ">\n";
  
         _qualifiers.toXml(out);         _qualifiers.toXml(out);
Line 177 
Line 179 
         out << " ";         out << " ";
  
     // Output the data type and name     // Output the data type and name
     out << TypeToString(_type) << " " <<  _name;      out << _type.toString() << " " <<  _name;
  
     if (_isArray)     if (_isArray)
     {     {
Line 194 
Line 196 
 } }
  
  
 void CIMParameterRep::print(PEGASUS_STD(ostream) &os) const  
 {  
     Array<Sint8> tmp;  
     toXml(tmp);  
     tmp.append('\0');  
     os << tmp.getData() << PEGASUS_STD(endl);  
 }  
   
 Boolean CIMParameterRep::identical(const CIMParameterRep* x) const Boolean CIMParameterRep::identical(const CIMParameterRep* x) const
 { {
     if (_name != x->_name)     if (_name != x->_name)
Line 235 
Line 229 
     x._qualifiers.cloneTo(_qualifiers);     x._qualifiers.cloneTo(_qualifiers);
 } }
  
 CIMParameterRep& CIMParameterRep::operator=(const CIMParameterRep& x)  
 {  
     return *this;  
 }  
   
 void CIMParameterRep::setType(CIMType type) void CIMParameterRep::setType(CIMType type)
 { {
     _type = type;     _type = type;


Legend:
Removed from v.1.13  
changed lines
  Added in v.1.18

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2