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

 1 kumpf 1.5 //%/////////////////////////////////////////////////////////////////////////////
 2 mike  1.2 //
 3 kumpf 1.5 // Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM,
 4           // The Open Group, Tivoli Systems
 5 mike  1.2 //
 6 kumpf 1.5 // Permission is hereby granted, free of charge, to any person obtaining a copy
 7           // of this software and associated documentation files (the "Software"), to
 8           // deal in the Software without restriction, including without limitation the
 9           // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
10           // sell copies of the Software, and to permit persons to whom the Software is
11           // furnished to do so, subject to the following conditions:
12           // 
13           // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
14           // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
15           // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
16           // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
17           // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
18           // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
19           // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20           // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 mike  1.2 //
22 kumpf 1.5 //==============================================================================
23 mike  1.2 //
24           // Author: Mike Brasher (mbrasher@bmc.com)
25           //
26 kumpf 1.7 // Modified By: Carol Ann Krug Graves, Hewlett-Packard Company
27           //                (carolann_graves@hp.com)
28 gerarda 1.9 //              Gerarda Marquez (gmarquez@us.ibm.com)
29             //              -- PEP 43 changes
30 mike    1.2 //
31 bob     1.3 //%////////////////////////////////////////////////////////////////////////////
32 mike    1.2 
33             #ifndef PegasusCompiler_Compiler_Decl_Context_h
34             #define PegasusCompiler_Compiler_Decl_Context_h
35             
36 bob     1.3 ///////////////////////////////////////////////////////////////////////////////
37 mike    1.2 //
38             // compilerDeclContext
39             //
40             //	This context is used by the resolve() methods to lookup dependent
41             //	objects during resolution.  This subclass takes into account
42             //      environments where some or all of the objects which need
43             //      to exist are not in the repository, but rather have been
44             //      explicitly provided.
45             //
46             //////////////////////////////////////////////////////////////////////////////
47             
48             #include <Pegasus/Common/Config.h>
49 kumpf   1.8 #include <Pegasus/Common/ArrayInternal.h>
50 bob     1.3 #include <Pegasus/Compiler/compilerCommonDefs.h>
51 mike    1.2 #include <Pegasus/Repository/RepositoryDeclContext.h>
52 bob     1.4 #include <Pegasus/Repository/CIMRepository.h>
53 kumpf   1.6 #include <Pegasus/Compiler/Linkage.h>
54 mike    1.2 
55 bob     1.3 PEGASUS_USING_PEGASUS;
56             
57             class PEGASUS_COMPILER_LINKAGE compilerDeclContext :
58             public RepositoryDeclContext {
59 mike    1.2  public:
60 bob     1.3   compilerDeclContext(CIMRepository *repository,
61             			      compilerCommonDefs::operationType ot);
62 mike    1.2 
63               virtual ~compilerDeclContext();
64             
65 bob     1.3   virtual
66 kumpf   1.7     CIMQualifierDecl lookupQualifierDecl (const CIMNamespaceName &nameSpace,
67             					  const CIMName &qualifierName) const;
68 mike    1.2   virtual
69 kumpf   1.7     CIMClass         lookupClass        (const CIMNamespaceName &nameSpace,
70             					 const CIMName &className) const;
71 mike    1.2 
72 kumpf   1.7   void               addQualifierDecl   (const CIMNamespaceName &nameSpace,
73 mike    1.2 					 const CIMQualifierDecl& x);
74             
75 kumpf   1.7   void               addClass           (const CIMNamespaceName &nameSpace,
76 mike    1.2 					 CIMClass &x);
77 bob     1.3 
78 kumpf   1.7   void               addInstance        (const CIMNamespaceName &nameSpace,
79 bob     1.3 					 CIMInstance &x);
80 gerarda 1.9 
81               void               modifyClass           (const CIMNamespaceName &nameSpace,
82             					 CIMClass &x);
83             
84 mike    1.2  private:
85 bob     1.3   CIMRepository *_cimRepository;
86               compilerCommonDefs::operationType _ot;
87 mike    1.2   Array<CIMClass>         _classes;
88               Array<CIMQualifierDecl> _qualifiers;
89               Array<CIMInstance>      _instances;
90 kumpf   1.7   const CIMClass *_findClassInMemory(const CIMName &classname) const;
91               const CIMQualifierDecl *_findQualifierInMemory(const CIMName &name) const;
92 mike    1.2 };
93             
94 bob     1.3 #endif // PegasusCompiler_Compiler_Decl_Context_h

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2