version 1.2, 2001/07/10 22:31:20
|
version 1.3, 2001/07/16 22:00:00
|
|
|
//%///////////////////////////////////////////////////////////////////////////// |
//%/////////////////////////////////////////////////////////////////////////// |
// | // |
// Copyright (c) 2000 The Open Group, BMC Software, Tivoli Systems, IBM | // Copyright (c) 2000 The Open Group, BMC Software, Tivoli Systems, IBM |
// | // |
|
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
// DEALINGS IN THE SOFTWARE. | // DEALINGS IN THE SOFTWARE. |
// | // |
//============================================================================== |
//============================================================================= |
// | // |
// Author: Mike Brasher (mbrasher@bmc.com) | // Author: Mike Brasher (mbrasher@bmc.com) |
// | // |
// Modified By: | // Modified By: |
// | // |
//%///////////////////////////////////////////////////////////////////////////// |
//%//////////////////////////////////////////////////////////////////////////// |
| |
#ifndef PegasusCompiler_Compiler_Decl_Context_h | #ifndef PegasusCompiler_Compiler_Decl_Context_h |
#define PegasusCompiler_Compiler_Decl_Context_h | #define PegasusCompiler_Compiler_Decl_Context_h |
| |
//////////////////////////////////////////////////////////////////////////////// |
/////////////////////////////////////////////////////////////////////////////// |
// | // |
// compilerDeclContext | // compilerDeclContext |
// | // |
|
|
| |
#include <Pegasus/Common/Config.h> | #include <Pegasus/Common/Config.h> |
#include <Pegasus/Common/Array.h> | #include <Pegasus/Common/Array.h> |
|
#include <Pegasus/Compiler/compilerCommonDefs.h> |
#include <Pegasus/Repository/RepositoryDeclContext.h> | #include <Pegasus/Repository/RepositoryDeclContext.h> |
#include <Pegasus/Compiler/cimmofRepository.h> | #include <Pegasus/Compiler/cimmofRepository.h> |
| |
class compilerDeclContext : public RepositoryDeclContext { |
PEGASUS_USING_PEGASUS; |
|
|
|
class PEGASUS_COMPILER_LINKAGE compilerDeclContext : |
|
public RepositoryDeclContext { |
public: | public: |
compilerDeclContext(cimmofRepository *repository, |
compilerDeclContext(CIMRepository *repository, |
cimmofRepository::operationType ot); |
compilerCommonDefs::operationType ot); |
| |
virtual ~compilerDeclContext(); | virtual ~compilerDeclContext(); |
| |
|
|
| |
void addClass (const String &nameSpace, | void addClass (const String &nameSpace, |
CIMClass &x); | CIMClass &x); |
|
|
|
void addInstance (const String &nameSpace, |
|
CIMInstance &x); |
private: | private: |
cimmofRepository *_cimmofRepository; |
CIMRepository *_cimRepository; |
cimmofRepository::operationType _ot; |
compilerCommonDefs::operationType _ot; |
Array<CIMClass> _classes; | Array<CIMClass> _classes; |
Array<CIMQualifierDecl> _qualifiers; | Array<CIMQualifierDecl> _qualifiers; |
Array<CIMInstance> _instances; | Array<CIMInstance> _instances; |