1 karl 1.38 //%2006////////////////////////////////////////////////////////////////////////
|
2 mike 1.17 //
|
3 karl 1.34 // 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.32 // IBM Corp.; EMC Corporation, The Open Group.
|
7 karl 1.34 // 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.36 // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
10 // EMC Corporation; VERITAS Software Corporation; The Open Group.
|
11 karl 1.38 // Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
12 // EMC Corporation; Symantec Corporation; The Open Group.
|
13 mike 1.17 //
14 // Permission is hereby granted, free of charge, to any person obtaining a copy
|
15 chip 1.19 // 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 mike 1.17 // 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 kumpf 1.27 //
|
21 chip 1.19 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
|
22 mike 1.17 // 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 chip 1.19 // 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 mike 1.17 // 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_InstanceDeclRep_h
35 #define Pegasus_InstanceDeclRep_h
36
37 #include <Pegasus/Common/Config.h>
|
38 mike 1.18 #include <Pegasus/Common/CIMObjectRep.h>
|
39 kumpf 1.28 #include <Pegasus/Common/Linkage.h>
|
40 karl 1.33 #include <Pegasus/Common/CIMPropertyList.h>
|
41 mike 1.17 PEGASUS_NAMESPACE_BEGIN
42
43 class DeclContext;
44 class CIMInstance;
45 class CIMConstInstance;
46 class CIMClass;
47 class CIMConstClass;
48
|
49 mike 1.39 class CIMInstanceRep : public CIMObjectRep
|
50 mike 1.17 {
51 public:
52
|
53 mike 1.22 CIMInstanceRep(
|
54 kumpf 1.41 const CIMObjectPath& reference);
|
55 mike 1.17
|
56 mike 1.18 virtual ~CIMInstanceRep();
|
57 mike 1.17
58 void resolve(
|
59 kumpf 1.41 DeclContext* declContext,
60 const CIMNamespaceName& nameSpace,
61 CIMConstClass& cimClassOut,
62 Boolean propagateQualifiers);
|
63 mike 1.17
|
64 mike 1.37 virtual void toXml(Buffer& out) const;
|
65 mike 1.17
|
66 mike 1.37 virtual void toMof(Buffer& out) const;
|
67 karl 1.21
|
68 mike 1.18 virtual CIMObjectRep* clone() const
|
69 mike 1.17 {
|
70 kumpf 1.41 return new CIMInstanceRep(*this);
|
71 mike 1.17 }
72
|
73 kumpf 1.30 CIMObjectPath buildPath(const CIMConstClass& cimClass) const;
|
74 mike 1.17
|
75 karl 1.33 void filter(Boolean includeQualifiers,
76 Boolean includeClassOrigin,
77 const CIMPropertyList & propertyList);
|
78 mike 1.17 private:
79
80 CIMInstanceRep();
81
82 CIMInstanceRep(const CIMInstanceRep& x);
83
|
84 kumpf 1.23 // This method is declared and made private so that the compiler does
85 // not implicitly define a default copy constructor.
|
86 mike 1.18 CIMInstanceRep& operator=(const CIMInstanceRep& x)
87 {
|
88 kumpf 1.26 //PEGASUS_ASSERT(0);
|
89 kumpf 1.23 return *this;
|
90 mike 1.18 }
|
91 mike 1.17
92 friend class CIMInstance;
|
93 r.kieninger 1.40 friend class CIMClassRep;
|
94 mike 1.17 };
95
96 PEGASUS_NAMESPACE_END
97
98 #endif /* Pegasus_InstanceDeclRep_h */
|