1 karl 1.26 //%2004////////////////////////////////////////////////////////////////////////
|
2 mike 1.11 //
|
3 karl 1.26 // 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.25 // IBM Corp.; EMC Corporation, The Open Group.
|
7 karl 1.26 // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
8 // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
|
9 mike 1.11 //
10 // Permission is hereby granted, free of charge, to any person obtaining a copy
|
11 kumpf 1.19 // of this software and associated documentation files (the "Software"), to
12 // deal in the Software without restriction, including without limitation the
13 // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
14 mike 1.11 // sell copies of the Software, and to permit persons to whom the Software is
15 // furnished to do so, subject to the following conditions:
16 //
|
17 kumpf 1.19 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
|
18 mike 1.11 // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
19 // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
20 kumpf 1.19 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
21 // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
22 // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
23 mike 1.11 // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
24 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25 //
26 //==============================================================================
27 //
28 // Author: Mike Brasher (mbrasher@bmc.com)
29 //
|
30 kumpf 1.22 // Modified By: Carol Ann Krug Graves, Hewlett-Packard Company
31 // (carolann_graves@hp.com)
|
32 mike 1.11 //
33 //%/////////////////////////////////////////////////////////////////////////////
34
35 #ifndef Pegasus_QualifierDeclRep_h
36 #define Pegasus_QualifierDeclRep_h
37
38 #include <Pegasus/Common/Config.h>
|
39 kumpf 1.21 #include <Pegasus/Common/Linkage.h>
40 #include <Pegasus/Common/CIMName.h>
|
41 mike 1.11 #include <Pegasus/Common/CIMValue.h>
42 #include <Pegasus/Common/Sharable.h>
43 #include <Pegasus/Common/Array.h>
|
44 kumpf 1.24 #include <Pegasus/Common/InternalException.h>
|
45 mike 1.11 #include <Pegasus/Common/CIMFlavor.h>
46 #include <Pegasus/Common/CIMScope.h>
47
48 PEGASUS_NAMESPACE_BEGIN
49
50 class CIMConstQualifierDecl;
51 class CIMQualifierDecl;
52
53 class PEGASUS_COMMON_LINKAGE CIMQualifierDeclRep : public Sharable
54 {
55 public:
56
57 CIMQualifierDeclRep(
|
58 kumpf 1.21 const CIMName& name,
|
59 mike 1.11 const CIMValue& value,
|
60 kumpf 1.23 const CIMScope & scope,
61 const CIMFlavor & flavor,
|
62 mike 1.11 Uint32 arraySize);
63
64 virtual ~CIMQualifierDeclRep();
65
|
66 kumpf 1.21 const CIMName& getName() const
|
67 mike 1.11 {
68 return _name;
69 }
70
|
71 kumpf 1.21 void setName(const CIMName& name);
|
72 mike 1.11
73 CIMType getType() const
74 {
75 return _value.getType();
76 }
77
78 Boolean isArray() const
79 {
80 return _value.isArray();
81 }
82
83 const CIMValue& getValue() const
84 {
85 return _value;
86 }
87
88 void setValue(const CIMValue& value);
89
|
90 kumpf 1.22 const CIMScope & getScope () const
|
91 mike 1.11 {
92 return _scope;
93 }
94
|
95 kumpf 1.23 const CIMFlavor & getFlavor() const
|
96 mike 1.11 {
97 return _flavor;
98 }
99
100 Uint32 getArraySize() const
101 {
102 return _arraySize;
103 }
104
105 void toXml(Array<Sint8>& out) const;
106
|
107 mike 1.12 void toMof(Array<Sint8>& out) const;
108
|
109 mike 1.11 Boolean identical(const CIMQualifierDeclRep* x) const;
110
111 CIMQualifierDeclRep* clone() const
112 {
113 return new CIMQualifierDeclRep(*this);
114 }
115
116 private:
117
118 CIMQualifierDeclRep();
119
120 CIMQualifierDeclRep(const CIMQualifierDeclRep& x);
121
|
122 kumpf 1.14 // This method is declared and made private so that the compiler does
123 // not implicitly define a default copy constructor.
124 CIMQualifierDeclRep& operator=(const CIMQualifierDeclRep& x)
125 {
|
126 kumpf 1.18 //PEGASUS_ASSERT(0);
|
127 kumpf 1.14 return *this;
128 }
|
129 mike 1.11
|
130 kumpf 1.21 CIMName _name;
|
131 mike 1.11 CIMValue _value;
|
132 kumpf 1.22 CIMScope _scope;
|
133 kumpf 1.23 CIMFlavor _flavor;
|
134 mike 1.11 Uint32 _arraySize;
135 };
136
137 PEGASUS_NAMESPACE_END
138
139 #endif /* Pegasus_QualifierDeclRep_h */
|