1 karl 1.10 //%2006////////////////////////////////////////////////////////////////////////
|
2 chip 1.1 //
|
3 karl 1.2 // 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 chip 1.1 // IBM Corp.; EMC Corporation, The Open Group.
|
7 karl 1.2 // 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.7 // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
10 // EMC Corporation; VERITAS Software Corporation; The Open Group.
|
11 karl 1.10 // Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
12 // EMC Corporation; Symantec Corporation; The Open Group.
|
13 chip 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 karl 1.10 //
|
21 chip 1.1 // 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 #ifndef Pegasus_ObjectNormalizer_h
35 #define Pegasus_ObjectNormalizer_h
36
|
37 kumpf 1.13 #include <Pegasus/Common/SharedPtr.h>
|
38 chip 1.1 #include <Pegasus/Common/CIMClass.h>
39 #include <Pegasus/Common/CIMInstance.h>
40 #include <Pegasus/Common/String.h>
41 #include <Pegasus/Common/Linkage.h>
42
43 PEGASUS_NAMESPACE_BEGIN
44
|
45 a.dunfey 1.11 class PEGASUS_COMMON_LINKAGE NormalizerContext
46 {
47 public:
48 virtual ~NormalizerContext() {};
49
50 virtual CIMClass getClass(
51 const CIMNamespaceName& nameSpace,
52 const CIMName& name) = 0;
53
54 virtual Array<CIMName> enumerateClassNames(
55 const CIMNamespaceName& nameSpace, const CIMName& className,
56 bool deepInheritance) = 0;
57
|
58 kumpf 1.13 virtual NormalizerContext* clone() = 0;
|
59 a.dunfey 1.11 };
60
|
61 chip 1.1 // TODO: add documentation
62 class PEGASUS_COMMON_LINKAGE ObjectNormalizer
63 {
64 public:
|
65 kumpf 1.12 ObjectNormalizer();
|
66 chip 1.3 ObjectNormalizer(
|
67 kumpf 1.12 const CIMClass& cimClass,
|
68 chip 1.9 Boolean includeQualifiers,
|
69 a.dunfey 1.11 Boolean includeClassOrigin,
70 const CIMNamespaceName& nameSpace,
|
71 kumpf 1.13 SharedPtr<NormalizerContext>& context);
|
72 chip 1.1
|
73 kumpf 1.12 CIMObjectPath processClassObjectPath(
74 const CIMObjectPath& cimObjectPath) const;
75 CIMObjectPath processInstanceObjectPath(
76 const CIMObjectPath& cimObjectPath) const;
77
78 //CIMClass processClass(const CIMClass& cimClass) const;
79 CIMInstance processInstance(const CIMInstance& cimInstance) const;
80 //CIMIndication processIndication(const CIMIndication& cimIndication);
|
81 chip 1.1
|
82 venkat.puvvada 1.14 static CIMProperty processProperty(
|
83 kumpf 1.12 CIMConstProperty& referenceProperty,
84 CIMConstProperty& cimProperty,
|
85 a.dunfey 1.11 Boolean includeQualifiers,
86 Boolean includeClassOrigin,
87 NormalizerContext * context,
|
88 kumpf 1.12 const CIMNamespaceName& nameSpace);
|
89 a.dunfey 1.11
|
90 venkat.puvvada 1.14 static void setEnableNormalization(Boolean value);
91
|
92 kavita.gupta 1.15 static Boolean getEnableNormalization();
|
93 chip 1.1 private:
|
94 chip 1.3 CIMClass _cimClass;
95
96 Boolean _includeQualifiers;
97 Boolean _includeClassOrigin;
|
98 kumpf 1.13 SharedPtr<NormalizerContext> _context;
|
99 a.dunfey 1.11 CIMNamespaceName _nameSpace;
|
100 venkat.puvvada 1.14 static Boolean _enableNormalization;
|
101 chip 1.1 };
102
103 PEGASUS_NAMESPACE_END
104
105 #endif
|