(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.11 and 1.17

version 1.11, 2001/06/16 23:09:59 version 1.17, 2002/05/03 01:28:14
Line 26 
Line 26 
 // //
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
  
   #include <Pegasus/Common/Config.h>
 #include <cassert> #include <cassert>
 #include "CIMMethod.h" #include "CIMMethod.h"
 #include "Indentor.h" #include "Indentor.h"
Line 130 
Line 131 
         nameSpace,         nameSpace,
         CIMScope::METHOD,         CIMScope::METHOD,
         false,         false,
         inheritedMethod._rep->_qualifiers);          inheritedMethod._rep->_qualifiers,
           true);
  
     // Validate each of the parameters:     // Validate each of the parameters:
  
Line 153 
Line 155 
         nameSpace,         nameSpace,
         CIMScope::METHOD,         CIMScope::METHOD,
         false,         false,
         dummy);          dummy,
           true);
  
     // Validate each of the parameters:     // Validate each of the parameters:
  
Line 198 
Line 201 
     os << tmp.getData() << PEGASUS_STD(endl);     os << tmp.getData() << PEGASUS_STD(endl);
 } }
  
   /**
       The BNF for this is;
       methodDeclaration   =  [ qualifierList ] dataType methodName
                              "(" [ parameterList ] ")" ";"
   
       parameterList       =  parameter *( "," parameter )
       Format with qualifiers on one line and declaration on another. Start
       with newline but none at the end.
   */
   void CIMMethodRep::toMof(Array<Sint8>& out) const   //ATTNKS:
   {
       // Output the qualifier list starting on new line
       if (_qualifiers.getCount())
           out << "\n";
   
       _qualifiers.toMof(out);
   
       // output the type, MethodName and ParmeterList left enclosure
       out << "\n" << TypeToString(_type) << " " << _name << "(";
   
       // output the param list separated by commas.
   
       for (Uint32 i = 0, n = _parameters.size(); i < n; i++)
       {
           // If not first, output comma separator
           if (i)
               out << ", ";
   
           _parameters[i].toMof(out);
       }
   
       // output the parameterlist and method terminator
       out << ");";
   }
   
   
 CIMMethodRep::CIMMethodRep() CIMMethodRep::CIMMethodRep()
 { {
  
Line 218 
Line 257 
         _parameters.append(x._parameters[i].clone());         _parameters.append(x._parameters[i].clone());
 } }
  
 CIMMethodRep& CIMMethodRep::operator=(const CIMMethodRep& x)  
 {  
     return *this;  
 }  
   
 Boolean CIMMethodRep::identical(const CIMMethodRep* x) const Boolean CIMMethodRep::identical(const CIMMethodRep* x) const
 { {
     if (_name != x->_name)     if (_name != x->_name)


Legend:
Removed from v.1.11  
changed lines
  Added in v.1.17

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2