(file) Return to Resolver.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

  1 karl  1.7 //%2006////////////////////////////////////////////////////////////////////////
  2 kumpf 1.1 //
  3 karl  1.5 // 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.4 // IBM Corp.; EMC Corporation, The Open Group.
  7 karl  1.5 // 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.6 // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 10           // EMC Corporation; VERITAS Software Corporation; The Open Group.
 11 karl  1.7 // Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 12           // EMC Corporation; Symantec Corporation; The Open Group.
 13 kumpf 1.1 //
 14           // 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           // 
 21           // 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           //
 30           //==============================================================================
 31           //
 32           //%/////////////////////////////////////////////////////////////////////////////
 33           
 34 kumpf 1.1 #include <Pegasus/Common/Resolver.h>
 35           #include <Pegasus/Common/CIMClassRep.h>
 36           #include <Pegasus/Common/CIMInstanceRep.h>
 37           #include <Pegasus/Common/CIMPropertyRep.h>
 38           #include <Pegasus/Common/CIMMethodRep.h>
 39           #include <Pegasus/Common/CIMParameterRep.h>
 40           #include <Pegasus/Common/CIMQualifierRep.h>
 41           
 42           PEGASUS_NAMESPACE_BEGIN
 43           
 44 kumpf 1.8 void Resolver::resolveClass(
 45               CIMClass& theClass,
 46               DeclContext* declContext,
 47               const CIMNamespaceName& nameSpace)
 48           {
 49               theClass._checkRep();
 50               theClass._rep->resolve(declContext, nameSpace);
 51 kumpf 1.1 }
 52           
 53 kumpf 1.8 void Resolver::resolveInstance(
 54               CIMInstance& theInstance,
 55               DeclContext* declContext,
 56               const CIMNamespaceName& nameSpace,
 57 kumpf 1.1     Boolean propagateQualifiers)
 58           {
 59 kumpf 1.8     theInstance._checkRep();
 60 kumpf 1.1     CIMConstClass cimClass;
 61 kumpf 1.8     theInstance._rep->resolve(
 62                   declContext, nameSpace, cimClass, propagateQualifiers);
 63 kumpf 1.1 }
 64           
 65 kumpf 1.8 void Resolver::resolveInstance(
 66               CIMInstance& theInstance,
 67               DeclContext* declContext,
 68               const CIMNamespaceName& nameSpace,
 69               CIMConstClass& cimClassOut,
 70 kumpf 1.1     Boolean propagateQualifiers)
 71           {
 72 kumpf 1.8     theInstance._checkRep();
 73               theInstance._rep->resolve(declContext, nameSpace, cimClassOut,
 74 kumpf 1.1         propagateQualifiers);
 75           }
 76           
 77 kumpf 1.8 void Resolver::resolveProperty(
 78               CIMProperty& theProperty,
 79               DeclContext* declContext,
 80               const CIMNamespaceName& nameSpace,
 81 kumpf 1.1     Boolean isInstancePart,
 82 kumpf 1.8     const CIMConstProperty& inheritedProperty,
 83 kumpf 1.1     Boolean propagateQualifiers)
 84           {
 85 kumpf 1.8     theProperty._checkRep();
 86               theProperty._rep->resolve(declContext, nameSpace, isInstancePart,
 87 kumpf 1.1         inheritedProperty, propagateQualifiers);
 88           }
 89           
 90 kumpf 1.8 void Resolver::resolveProperty(
 91               CIMProperty& theProperty,
 92               DeclContext* declContext,
 93               const CIMNamespaceName& nameSpace,
 94 kumpf 1.1     Boolean isInstancePart,
 95               Boolean propagateQualifiers)
 96           {
 97 kumpf 1.8     theProperty._checkRep();
 98               theProperty._rep->resolve(declContext, nameSpace, isInstancePart,
 99 kumpf 1.1         propagateQualifiers);
100           }
101           
102 kumpf 1.8 void Resolver::resolveMethod(
103               CIMMethod& theMethod,
104               DeclContext* declContext,
105               const CIMNamespaceName& nameSpace,
106               const CIMConstMethod& inheritedMethod)
107 kumpf 1.1 {
108 kumpf 1.8     theMethod._checkRep();
109               theMethod._rep->resolve(declContext, nameSpace, inheritedMethod);
110 kumpf 1.1 }
111           
112 kumpf 1.8 void Resolver::resolveMethod(
113               CIMMethod& theMethod,
114               DeclContext* declContext,
115               const CIMNamespaceName& nameSpace)
116 kumpf 1.1 {
117 kumpf 1.8     theMethod._checkRep();
118               theMethod._rep->resolve(declContext, nameSpace);
119 kumpf 1.1 }
120           
121 kumpf 1.8 void Resolver::resolveParameter(
122               CIMParameter& theParameter,
123               DeclContext* declContext,
124               const CIMNamespaceName& nameSpace)
125 kumpf 1.1 {
126 kumpf 1.8     theParameter._checkRep();
127               theParameter._rep->resolve(declContext, nameSpace);
128 kumpf 1.1 }
129           
130 kumpf 1.8 void Resolver::resolveQualifierFlavor(
131               CIMQualifier& theQualifier,
132               const CIMFlavor& inheritedFlavor,
133 kumpf 1.1     Boolean inherited)
134           {
135 kumpf 1.8     theQualifier._checkRep();
136               theQualifier._rep->resolveFlavor(inheritedFlavor, inherited);
137 kumpf 1.1 }
138           
139           PEGASUS_NAMESPACE_END

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2