version 1.22, 2006/10/17 21:42:45
|
version 1.23, 2007/06/22 21:34:59
|
|
|
// | // |
//============================================================================== | //============================================================================== |
// | // |
// 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 |
// | // |
|
|
| |
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) |
|
|
_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 |
|
|
} | } |
| |
| |
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 |
|
|
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 |
|
|
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 |
|
|
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); |