1 mike 1.17 //%/////////////////////////////////////////////////////////////////////////////
2 //
|
3 kumpf 1.27 // Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM,
4 // The Open Group, Tivoli Systems
|
5 mike 1.17 //
6 // Permission is hereby granted, free of charge, to any person obtaining a copy
|
7 chip 1.19 // 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 mike 1.17 // 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 kumpf 1.27 //
|
13 chip 1.19 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
|
14 mike 1.17 // 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 chip 1.19 // 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 mike 1.17 // 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 //==============================================================================
23 //
24 // Author: Mike Brasher (mbrasher@bmc.com)
25 //
26 // Modified By:
27 //
28 //%/////////////////////////////////////////////////////////////////////////////
29
30 #ifndef Pegasus_InstanceDeclRep_h
31 #define Pegasus_InstanceDeclRep_h
32
33 #include <Pegasus/Common/Config.h>
|
34 mike 1.18 #include <Pegasus/Common/CIMObjectRep.h>
|
35 mike 1.17
36 PEGASUS_NAMESPACE_BEGIN
37
38 class DeclContext;
39 class CIMInstance;
40 class CIMConstInstance;
41 class CIMClass;
42 class CIMConstClass;
43
|
44 mike 1.18 class PEGASUS_COMMON_LINKAGE CIMInstanceRep : public CIMObjectRep
|
45 mike 1.17 {
46 public:
47
|
48 mike 1.22 CIMInstanceRep(
|
49 kumpf 1.25 const CIMObjectPath& reference);
|
50 mike 1.17
|
51 mike 1.18 virtual ~CIMInstanceRep();
|
52 mike 1.17
53 void resolve(
54 DeclContext* declContext,
55 const String& nameSpace,
|
56 mike 1.22 CIMConstClass& cimClassOut,
57 Boolean propagateQualifiers);
|
58 mike 1.17
|
59 mike 1.18 virtual void toXml(Array<Sint8>& out) const;
|
60 mike 1.17
|
61 karl 1.21 virtual void toMof(Array<Sint8>& out) const;
62
|
63 mike 1.18 virtual CIMObjectRep* clone() const
|
64 mike 1.17 {
65 return new CIMInstanceRep(*this);
66 }
67
|
68 kumpf 1.25 CIMObjectPath getInstanceName(const CIMConstClass& cimClass) const;
|
69 mike 1.17
|
70 sage 1.20 String toString() const;
71
|
72 mike 1.17 private:
73
74 CIMInstanceRep();
75
76 CIMInstanceRep(const CIMInstanceRep& x);
77
|
78 kumpf 1.23 // This method is declared and made private so that the compiler does
79 // not implicitly define a default copy constructor.
|
80 mike 1.18 CIMInstanceRep& operator=(const CIMInstanceRep& x)
81 {
|
82 kumpf 1.26 //PEGASUS_ASSERT(0);
|
83 kumpf 1.23 return *this;
|
84 mike 1.18 }
|
85 mike 1.17
86 friend class CIMInstance;
87 };
88
89 PEGASUS_NAMESPACE_END
90
91 #endif /* Pegasus_InstanceDeclRep_h */
|