1 bob 1.1 //%/////////////////////////////////////////////////////////////////////////////
2 //
3 // Copyright (c) 2000, 2001 The Open group, BMC Software, Tivoli Systems, IBM
4 //
5 // Permission is hereby granted, free of charge, to any person obtaining a copy
6 // of this software and associated documentation files (the "Software"), to
7 // deal in the Software without restriction, including without limitation the
8 // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
9 // sell copies of the Software, and to permit persons to whom the Software is
10 // furnished to do so, subject to the following conditions:
11 //
12 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
13 // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
14 // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
15 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
16 // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
17 // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
18 // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
19 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20 //
21 //==============================================================================
22 bob 1.1 //
23 // Author: Mike Brasher (mbrasher@bmc.com)
24 //
25 // Modified By:
26 //
27 //%/////////////////////////////////////////////////////////////////////////////
28
|
32 bob 1.1 #include <Pegasus/Common/DeclContext.h>
33
34 PEGASUS_USING_STD;
35
36 PEGASUS_NAMESPACE_BEGIN
37
38 class CIMRepository; // forward declaration for repository member
39
40 ////////////////////////////////////////////////////////////////////////////////
41 //
42 // RepositoryDeclContext
43 //
44 // This context is used by the resolve() methods to lookup dependent
45 // objects during resolution.
46 //
47 ////////////////////////////////////////////////////////////////////////////////
48
49 class RepositoryDeclContext : public DeclContext
50 {
51 public:
52
53 bob 1.1 RepositoryDeclContext(CIMRepository* repository);
54
55 virtual ~RepositoryDeclContext();
56
57 virtual CIMQualifierDecl lookupQualifierDecl(
58 const String& nameSpace,
59 const String& qualifierName) const;
60
61 virtual CIMClass lookupClass(
62 const String& nameSpace,
63 const String& className) const;
64
65 private:
66
67 CIMRepository* _repository;
68 };
69
70 PEGASUS_NAMESPACE_END
|