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

Diff for /pegasus/src/Pegasus/Compiler/compilerDeclContext.cpp between version 1.8 and 1.9

version 1.8, 2002/06/01 00:56:56 version 1.9, 2002/08/08 18:30:00
Line 24 
Line 24 
 // Author: Mike Brasher (mbrasher@bmc.com) // Author: Mike Brasher (mbrasher@bmc.com)
 // //
 // Modified By:  Bob Blair (bblair@bmc.com) // Modified By:  Bob Blair (bblair@bmc.com)
   //              Carol Ann Krug Graves, Hewlett-Packard Company
   //                (carolann_graves@hp.com)
 // //
 //%//////////////////////////////////////////////////////////////////////////// //%////////////////////////////////////////////////////////////////////////////
  
Line 43 
Line 45 
 compilerDeclContext::~compilerDeclContext() {} compilerDeclContext::~compilerDeclContext() {}
  
 CIMQualifierDecl CIMQualifierDecl
 compilerDeclContext::lookupQualifierDecl(const String &nameSpace,  compilerDeclContext::lookupQualifierDecl(const CIMNamespaceName &nameSpace,
                                          const String &qualifierName) const                                           const CIMName &qualifierName) const
 { {
   const CIMQualifierDecl *pTheQualifier = 0;   const CIMQualifierDecl *pTheQualifier = 0;
   if (_ot != compilerCommonDefs::USE_REPOSITORY) {   if (_ot != compilerCommonDefs::USE_REPOSITORY) {
Line 59 
Line 61 
 } }
  
 CIMClass CIMClass
 compilerDeclContext::lookupClass(const String &nameSpace,  compilerDeclContext::lookupClass(const CIMNamespaceName &nameSpace,
                                  const String &className) const                                   const CIMName &className) const
 { {
   const CIMClass *pTheClass;   const CIMClass *pTheClass;
  
Line 75 
Line 77 
 } }
  
 void void
 compilerDeclContext::addQualifierDecl(const String &nameSpace,  compilerDeclContext::addQualifierDecl(const CIMNamespaceName &nameSpace,
                                       const CIMQualifierDecl &x)                                       const CIMQualifierDecl &x)
 { {
   if (_ot != compilerCommonDefs::USE_REPOSITORY)   if (_ot != compilerCommonDefs::USE_REPOSITORY)
Line 85 
Line 87 
 } }
  
 void void
 compilerDeclContext::addClass(const String &nameSpace, CIMClass &x)  compilerDeclContext::addClass(const CIMNamespaceName &nameSpace, CIMClass &x)
 { {
   if (_ot != compilerCommonDefs::USE_REPOSITORY)   if (_ot != compilerCommonDefs::USE_REPOSITORY)
     _classes.append(x);     _classes.append(x);
Line 94 
Line 96 
 } }
  
 void void
 compilerDeclContext::addInstance(const String &nameSpace, CIMInstance &x)  compilerDeclContext::addInstance(const CIMNamespaceName &nameSpace,
                                    CIMInstance &x)
 { {
   if (_ot == compilerCommonDefs::USE_REPOSITORY)   if (_ot == compilerCommonDefs::USE_REPOSITORY)
     _repository->createInstance(nameSpace, x);     _repository->createInstance(nameSpace, x);
 } }
  
 const CIMClass * const CIMClass *
 compilerDeclContext::_findClassInMemory(const String &classname) const  compilerDeclContext::_findClassInMemory(const CIMName &classname) const
 { {
   for (unsigned int i = 0; i < _classes.size(); i++) {   for (unsigned int i = 0; i < _classes.size(); i++) {
     if (String::equal(classname, (_classes[i]).getClassName()))     if (String::equal(classname, (_classes[i]).getClassName()))
Line 111 
Line 114 
 } }
  
 const CIMQualifierDecl * const CIMQualifierDecl *
 compilerDeclContext::_findQualifierInMemory(const String &classname) const  compilerDeclContext::_findQualifierInMemory(const CIMName &classname) const
 { {
   for (unsigned int i = 0; i < _qualifiers.size(); i++) {   for (unsigned int i = 0; i < _qualifiers.size(); i++) {
     if (String::equal(classname, (_qualifiers[i]).getName()))     if (String::equal(classname, (_qualifiers[i]).getName()))


Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2