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

Diff for /pegasus/src/Pegasus/Compiler/cimmofRepository.cpp between version 1.22 and 1.23

version 1.22, 2006/10/17 21:42:45 version 1.23, 2007/06/22 21:34:59
Line 29 
Line 29 
 // //
 //============================================================================== //==============================================================================
 // //
 // Author: Bob Blair (bblair@bmc.com)  
 //  
 // Modified By: Carol Ann Krug Graves, Hewlett-Packard Company  
 //                (carolann_graves@hp.com)  
 //              Gerarda Marquez (gmarquez@us.ibm.com)  
 //              -- PEP 43 changes  
 //  
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
   
   
 // //
 // implementation of  cimmofRepository // implementation of  cimmofRepository
 // //
Line 53 
Line 44 
  
 PEGASUS_USING_PEGASUS; PEGASUS_USING_PEGASUS;
  
 cimmofRepository::cimmofRepository(  cimmofRepository::cimmofRepository(const String& path,
     const String& path,  
     Uint32 mode,     Uint32 mode,
     compilerCommonDefs::operationType ot)     compilerCommonDefs::operationType ot)
     : _cimrepository(0), _context(0), _ot(ot)     : _cimrepository(0), _context(0), _ot(ot)
Line 68 
Line 58 
     _cimrepository->setDeclContext(_context);     _cimrepository->setDeclContext(_context);
 } }
  
 cimmofRepository::~cimmofRepository() {  cimmofRepository::~cimmofRepository()
   {
   if (_cimrepository)   if (_cimrepository)
     delete(_cimrepository);     delete(_cimrepository);
   if (_context)   if (_context)
     delete(_context);     delete(_context);
 } }
  
 int  int cimmofRepository::addClass(const CIMNamespaceName &nameSpace,
 cimmofRepository::addClass(const CIMNamespaceName &nameSpace,  
                            CIMClass *classdecl)                            CIMClass *classdecl)
 { {
   // Don't catch errors: pass them up to the requester   // Don't catch errors: pass them up to the requester
Line 85 
Line 75 
 } }
  
  
 int  int cimmofRepository::addInstance(const CIMNamespaceName &nameSpace,
 cimmofRepository::addInstance(const CIMNamespaceName &nameSpace,  
                               CIMInstance *instance)                               CIMInstance *instance)
 { {
   // Don't catch errors: pass them up to the requester   // Don't catch errors: pass them up to the requester
Line 94 
Line 83 
   return 0;   return 0;
 } }
  
 int  int cimmofRepository::addQualifier(const CIMNamespaceName &nameSpace,
 cimmofRepository::addQualifier(const CIMNamespaceName &nameSpace,  
                                CIMQualifierDecl *qualifier)                                CIMQualifierDecl *qualifier)
 { {
   // Don't catch errors: pass them up to the requester   // Don't catch errors: pass them up to the requester
Line 103 
Line 91 
   return 0;   return 0;
 } }
  
 CIMQualifierDecl  CIMQualifierDecl cimmofRepository::getQualifierDecl(
 cimmofRepository::getQualifierDecl(const CIMNamespaceName &nameSpace,      const CIMNamespaceName &nameSpace,
                                    const CIMName &name)                                    const CIMName &name)
 { {
   // Don't catch errors: pass them up to the requester   // Don't catch errors: pass them up to the requester
   return _context->lookupQualifierDecl(nameSpace, name);   return _context->lookupQualifierDecl(nameSpace, name);
 } }
  
 CIMClass  CIMClass cimmofRepository::getClass(const CIMNamespaceName &nameSpace,
 cimmofRepository::getClass(const CIMNamespaceName &nameSpace,  
                            const CIMName &classname)                            const CIMName &classname)
 { {
   // Don't catch errors: pass them up to the requester   // Don't catch errors: pass them up to the requester
   return _context->lookupClass(nameSpace, classname);   return _context->lookupClass(nameSpace, classname);
 } }
  
 int  int cimmofRepository::modifyClass(const CIMNamespaceName &nameSpace,
 cimmofRepository::modifyClass(const CIMNamespaceName &nameSpace,  
                            CIMClass *classdecl)                            CIMClass *classdecl)
 { {
   // Don't catch errors: pass them up to the requester   // Don't catch errors: pass them up to the requester
Line 128 
Line 114 
   return 0;   return 0;
 } }
  
 void  void cimmofRepository::createNameSpace(const CIMNamespaceName &nameSpaceName)
 cimmofRepository::createNameSpace(const CIMNamespaceName &nameSpaceName)  
 { {
   if (_cimrepository && _ot != compilerCommonDefs::IGNORE_REPOSITORY)   if (_cimrepository && _ot != compilerCommonDefs::IGNORE_REPOSITORY)
     _cimrepository->createNameSpace(nameSpaceName);     _cimrepository->createNameSpace(nameSpaceName);


Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2