version 1.37, 2007/09/05 19:39:37
|
version 1.37.2.1, 2007/09/28 02:34:14
|
|
|
#include <Pegasus/Compiler/Linkage.h> | #include <Pegasus/Compiler/Linkage.h> |
#include "parser.h" | #include "parser.h" |
#include "mofCompilerOptions.h" | #include "mofCompilerOptions.h" |
#include "cimmofRepositoryInterface.h" |
#include "cimmofConsumer.h" |
#include "cimmofMessages.h" | #include "cimmofMessages.h" |
#include "memobjs.h" | #include "memobjs.h" |
| |
|
|
| |
extern int cimmof_parse(); // the yacc parser entry point | extern int cimmof_parse(); // the yacc parser entry point |
| |
//class cimmofRepository; |
//class cimmofRepositoryConsumer; |
| |
// This class extends class parser (see parser.h) | // This class extends class parser (see parser.h) |
class PEGASUS_COMPILER_LINKAGE cimmofParser : public parser | class PEGASUS_COMPILER_LINKAGE cimmofParser : public parser |
|
|
| |
String _includefile; // temp storage for included file to be entered | String _includefile; // temp storage for included file to be entered |
| |
cimmofRepositoryInterface _repository; // repository interface object |
|
|
|
String _defaultNamespacePath; // The path we'll use if none is given | String _defaultNamespacePath; // The path we'll use if none is given |
| |
String _currentNamespacePath; // a namespace set from a #pragma | String _currentNamespacePath; // a namespace set from a #pragma |
| |
compilerCommonDefs::operationType _ot; | compilerCommonDefs::operationType _ot; |
|
|
|
cimmofConsumer* _consumer; // repository interface object |
|
|
public: | public: |
// Provide a way for the singleton to be constructed, or a | // Provide a way for the singleton to be constructed, or a |
// pointer to be returned: | // pointer to be returned: |
|
|
const mofCompilerOptions *getCompilerOptions() const; | const mofCompilerOptions *getCompilerOptions() const; |
// for all, or nearly all, operations, a repository object is needed | // for all, or nearly all, operations, a repository object is needed |
Boolean setRepository(void); | Boolean setRepository(void); |
const cimmofRepositoryInterface *getRepository() const; |
const cimmofConsumer *getRepository() const; |
// Whether you need a repository or not depends on the operationsType | // Whether you need a repository or not depends on the operationsType |
void setOperationType(compilerCommonDefs::operationType); | void setOperationType(compilerCommonDefs::operationType); |
compilerCommonDefs::operationType getOperationType() const; | compilerCommonDefs::operationType getOperationType() const; |