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