version 1.8, 2002/06/01 00:56:56
|
version 1.9, 2002/08/08 18:30:00
|
|
|
// 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) |
// | // |
//%//////////////////////////////////////////////////////////////////////////// | //%//////////////////////////////////////////////////////////////////////////// |
| |
|
|
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) { |
|
|
} | } |
| |
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; |
| |
|
|
} | } |
| |
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) |
|
|
} | } |
| |
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); |
|
|
} | } |
| |
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())) |
|
|
} | } |
| |
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())) |