1 martin 1.10 //%LICENSE////////////////////////////////////////////////////////////////
|
2 martin 1.11 //
|
3 martin 1.10 // Licensed to The Open Group (TOG) under one or more contributor license
4 // agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
5 // this work for additional information regarding copyright ownership.
6 // Each contributor licenses this file to you under the OpenPegasus Open
7 // Source License; you may not use this file except in compliance with the
8 // License.
|
9 martin 1.11 //
|
10 martin 1.10 // Permission is hereby granted, free of charge, to any person obtaining a
11 // copy of this software and associated documentation files (the "Software"),
12 // to deal in the Software without restriction, including without limitation
13 // the rights to use, copy, modify, merge, publish, distribute, sublicense,
14 // and/or sell copies of the Software, and to permit persons to whom the
15 // Software is furnished to do so, subject to the following conditions:
|
16 martin 1.11 //
|
17 martin 1.10 // The above copyright notice and this permission notice shall be included
18 // in all copies or substantial portions of the Software.
|
19 martin 1.11 //
|
20 martin 1.10 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
21 martin 1.11 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
22 martin 1.10 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
23 // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
24 // CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
25 // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
26 // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
27 martin 1.11 //
|
28 martin 1.10 //////////////////////////////////////////////////////////////////////////
|
29 kumpf 1.1 //
30 //%/////////////////////////////////////////////////////////////////////////////
31
32 #include <Pegasus/Common/Resolver.h>
33 #include <Pegasus/Common/CIMClassRep.h>
34 #include <Pegasus/Common/CIMInstanceRep.h>
35 #include <Pegasus/Common/CIMPropertyRep.h>
36 #include <Pegasus/Common/CIMMethodRep.h>
37 #include <Pegasus/Common/CIMParameterRep.h>
38 #include <Pegasus/Common/CIMQualifierRep.h>
39
40 PEGASUS_NAMESPACE_BEGIN
41
|
42 kumpf 1.8 void Resolver::resolveClass(
43 CIMClass& theClass,
44 DeclContext* declContext,
45 const CIMNamespaceName& nameSpace)
46 {
|
47 marek 1.9 CheckRep(theClass._rep);
|
48 kumpf 1.8 theClass._rep->resolve(declContext, nameSpace);
|
49 kumpf 1.1 }
50
|
51 kumpf 1.8 void Resolver::resolveInstance(
52 CIMInstance& theInstance,
53 DeclContext* declContext,
54 const CIMNamespaceName& nameSpace,
|
55 kumpf 1.1 Boolean propagateQualifiers)
56 {
|
57 marek 1.9 CheckRep(theInstance._rep);
|
58 kumpf 1.1 CIMConstClass cimClass;
|
59 kumpf 1.8 theInstance._rep->resolve(
60 declContext, nameSpace, cimClass, propagateQualifiers);
|
61 kumpf 1.1 }
62
|
63 kumpf 1.8 void Resolver::resolveInstance(
64 CIMInstance& theInstance,
65 DeclContext* declContext,
66 const CIMNamespaceName& nameSpace,
67 CIMConstClass& cimClassOut,
|
68 kumpf 1.1 Boolean propagateQualifiers)
69 {
|
70 marek 1.9 CheckRep(theInstance._rep);
|
71 kumpf 1.8 theInstance._rep->resolve(declContext, nameSpace, cimClassOut,
|
72 kumpf 1.1 propagateQualifiers);
73 }
74
|
75 kumpf 1.8 void Resolver::resolveProperty(
76 CIMProperty& theProperty,
77 DeclContext* declContext,
78 const CIMNamespaceName& nameSpace,
|
79 kumpf 1.1 Boolean isInstancePart,
|
80 kumpf 1.8 const CIMConstProperty& inheritedProperty,
|
81 kumpf 1.1 Boolean propagateQualifiers)
82 {
|
83 marek 1.9 CheckRep(theProperty._rep);
|
84 kumpf 1.8 theProperty._rep->resolve(declContext, nameSpace, isInstancePart,
|
85 kumpf 1.1 inheritedProperty, propagateQualifiers);
86 }
87
|
88 kumpf 1.8 void Resolver::resolveProperty(
89 CIMProperty& theProperty,
90 DeclContext* declContext,
91 const CIMNamespaceName& nameSpace,
|
92 kumpf 1.1 Boolean isInstancePart,
93 Boolean propagateQualifiers)
94 {
|
95 marek 1.9 CheckRep(theProperty._rep);
|
96 kumpf 1.8 theProperty._rep->resolve(declContext, nameSpace, isInstancePart,
|
97 kumpf 1.1 propagateQualifiers);
98 }
99
|
100 kumpf 1.8 void Resolver::resolveMethod(
101 CIMMethod& theMethod,
102 DeclContext* declContext,
103 const CIMNamespaceName& nameSpace,
104 const CIMConstMethod& inheritedMethod)
|
105 kumpf 1.1 {
|
106 marek 1.9 CheckRep(theMethod._rep);
|
107 kumpf 1.8 theMethod._rep->resolve(declContext, nameSpace, inheritedMethod);
|
108 kumpf 1.1 }
109
|
110 kumpf 1.8 void Resolver::resolveMethod(
111 CIMMethod& theMethod,
112 DeclContext* declContext,
113 const CIMNamespaceName& nameSpace)
|
114 kumpf 1.1 {
|
115 marek 1.9 CheckRep(theMethod._rep);
|
116 kumpf 1.8 theMethod._rep->resolve(declContext, nameSpace);
|
117 kumpf 1.1 }
118
|
119 kumpf 1.8 void Resolver::resolveParameter(
120 CIMParameter& theParameter,
121 DeclContext* declContext,
122 const CIMNamespaceName& nameSpace)
|
123 kumpf 1.1 {
|
124 marek 1.9 CheckRep(theParameter._rep);
|
125 kumpf 1.8 theParameter._rep->resolve(declContext, nameSpace);
|
126 kumpf 1.1 }
127
|
128 kumpf 1.8 void Resolver::resolveQualifierFlavor(
129 CIMQualifier& theQualifier,
130 const CIMFlavor& inheritedFlavor,
|
131 kumpf 1.1 Boolean inherited)
132 {
|
133 marek 1.9 CheckRep(theQualifier._rep);
|
134 kumpf 1.8 theQualifier._rep->resolveFlavor(inheritedFlavor, inherited);
|
135 kumpf 1.1 }
136
137 PEGASUS_NAMESPACE_END
|