1 kumpf 1.1 //%/////////////////////////////////////////////////////////////////////////////
2 //
3 // Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM,
4 // The Open Group, Tivoli Systems
5 //
6 // 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 //
22 kumpf 1.1 //==============================================================================
23 //
24 // Author: Carol Ann Krug Graves, Hewlett-Packard Company
25 // (carolann_graves@hp.com)
26 //
27 // Modified By:
28 //
29 //%/////////////////////////////////////////////////////////////////////////////
30
31 #include <Pegasus/Common/Resolver.h>
32 #include <Pegasus/Common/CIMClassRep.h>
33 #include <Pegasus/Common/CIMInstanceRep.h>
34 #include <Pegasus/Common/CIMPropertyRep.h>
35 #include <Pegasus/Common/CIMMethodRep.h>
36 #include <Pegasus/Common/CIMParameterRep.h>
37 #include <Pegasus/Common/CIMQualifierRep.h>
38
39 PEGASUS_NAMESPACE_BEGIN
40
41 void Resolver::resolveClass (
42 CIMClass & theClass,
43 kumpf 1.1 DeclContext * declContext,
|
44 kumpf 1.3 const CIMNamespaceName & nameSpace)
|
45 kumpf 1.1 {
46 theClass._checkRep ();
47 theClass._rep->resolve (declContext, nameSpace);
48 }
49
50 void Resolver::resolveInstance (
51 CIMInstance & theInstance,
52 DeclContext * declContext,
|
53 kumpf 1.3 const CIMNamespaceName & nameSpace,
|
54 kumpf 1.1 Boolean propagateQualifiers)
55 {
56 theInstance._checkRep ();
57 CIMConstClass cimClass;
58 theInstance._rep->resolve (declContext, nameSpace, cimClass,
59 propagateQualifiers);
60 }
61
62 void Resolver::resolveInstance (
63 CIMInstance & theInstance,
64 DeclContext * declContext,
|
65 kumpf 1.3 const CIMNamespaceName & nameSpace,
|
66 kumpf 1.1 CIMConstClass & cimClassOut,
67 Boolean propagateQualifiers)
68 {
69 theInstance._checkRep ();
70 theInstance._rep->resolve (declContext, nameSpace, cimClassOut,
71 propagateQualifiers);
72 }
73
74 void Resolver::resolveProperty (
75 CIMProperty & theProperty,
76 DeclContext * declContext,
|
77 kumpf 1.3 const CIMNamespaceName & nameSpace,
|
78 kumpf 1.1 Boolean isInstancePart,
79 const CIMConstProperty & inheritedProperty,
80 Boolean propagateQualifiers)
81 {
82 theProperty._checkRep ();
83 theProperty._rep->resolve (declContext, nameSpace, isInstancePart,
84 inheritedProperty, propagateQualifiers);
85 }
86
87 void Resolver::resolveProperty (
88 CIMProperty & theProperty,
89 DeclContext * declContext,
|
90 kumpf 1.3 const CIMNamespaceName & nameSpace,
|
91 kumpf 1.1 Boolean isInstancePart,
92 Boolean propagateQualifiers)
93 {
94 theProperty._checkRep ();
95 theProperty._rep->resolve (declContext, nameSpace, isInstancePart,
96 propagateQualifiers);
97 }
98
99 void Resolver::resolveMethod (
100 CIMMethod & theMethod,
101 DeclContext * declContext,
|
102 kumpf 1.3 const CIMNamespaceName & nameSpace,
|
103 kumpf 1.1 const CIMConstMethod & inheritedMethod)
104 {
105 theMethod._checkRep ();
106 theMethod._rep->resolve (declContext, nameSpace, inheritedMethod);
107 }
108
109 void Resolver::resolveMethod (
110 CIMMethod & theMethod,
111 DeclContext * declContext,
|
112 kumpf 1.3 const CIMNamespaceName & nameSpace)
|
113 kumpf 1.1 {
114 theMethod._checkRep ();
115 theMethod._rep->resolve (declContext, nameSpace);
116 }
117
118 void Resolver::resolveParameter (
119 CIMParameter & theParameter,
120 DeclContext * declContext,
|
121 kumpf 1.3 const CIMNamespaceName & nameSpace)
|
122 kumpf 1.1 {
123 theParameter._checkRep ();
124 theParameter._rep->resolve (declContext, nameSpace);
125 }
126
127 void Resolver::resolveQualifierFlavor (
128 CIMQualifier & theQualifier,
|
129 kumpf 1.2 const CIMFlavor & inheritedFlavor,
|
130 kumpf 1.1 Boolean inherited)
131 {
132 theQualifier._checkRep ();
133 theQualifier._rep->resolveFlavor (inheritedFlavor, inherited);
134 }
135
136 PEGASUS_NAMESPACE_END
|