(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.7 and 1.11

version 1.7, 2001/04/29 18:57:33 version 1.11, 2001/05/20 21:30:25
Line 124 
Line 124 
 { {
     if (pos >= _properties.size())     if (pos >= _properties.size())
         throw OutOfBounds();         throw OutOfBounds();
   
       _properties.remove(pos);
 } }
  
 Uint32 CIMClassRep::findProperty(const String& name) Uint32 CIMClassRep::findProperty(const String& name)
Line 137 
Line 139 
     return Uint32(-1);     return Uint32(-1);
 } }
  
   Boolean CIMClassRep::existsProperty(const String& name)
   {
       return (findProperty(name) != Uint32(-1)) ?
                       true : false;
   }
   
 CIMProperty CIMClassRep::getProperty(Uint32 pos) CIMProperty CIMClassRep::getProperty(Uint32 pos)
 { {
     if (pos >= _properties.size())     if (pos >= _properties.size())
Line 176 
Line 184 
     return Uint32(-1);     return Uint32(-1);
 } }
  
   Boolean CIMClassRep::existsMethod(const String& name)
   {
       return(findMethod(name) != Uint32(-1)) ?
                           true : false;
   }
 CIMMethod CIMClassRep::getMethod(Uint32 pos) CIMMethod CIMClassRep::getMethod(Uint32 pos)
 { {
     if (pos >= _methods.size())     if (pos >= _methods.size())
Line 188 
Line 201 
 { {
     return _methods.size();     return _methods.size();
 } }
   //ATTN: Ks 18 May
   void CIMClassRep::removeMethod(Uint32 pos)
   {
       if (pos >= _methods.size())
           throw OutOfBounds();
   
       _methods.remove(pos);
   }
  
 void CIMClassRep::resolve( void CIMClassRep::resolve(
     DeclContext* context,     DeclContext* context,
Line 211 
Line 232 
             = context->lookupClass(nameSpace, _superClassName);             = context->lookupClass(nameSpace, _superClassName);
  
         if (!superClass)         if (!superClass)
             throw NoSuchSuperClass(_superClassName);              throw PEGASUS_CIM_EXCEPTION(INVALID_SUPERCLASS, _superClassName);
  
 #if 0 #if 0
         if (!superClass._rep->_resolved)         if (!superClass._rep->_resolved)
Line 413 
Line 434 
     out << "</CLASS>\n";     out << "</CLASS>\n";
 } }
  
 void CIMClassRep::print(std::ostream &os) const  void CIMClassRep::print(PEGASUS_STD(ostream) &os) const
 { {
     Array<Sint8> tmp;     Array<Sint8> tmp;
     toXml(tmp);     toXml(tmp);


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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2