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 david.dillard 1.27 // (carolann_graves@hp.com)
32 // David Dillard, VERITAS Software Corp.
33 // (david.dillard@veritas.com)
|
34 mike 1.11 //
35 //%/////////////////////////////////////////////////////////////////////////////
36
37 #ifndef Pegasus_QualifierDeclRep_h
38 #define Pegasus_QualifierDeclRep_h
39
40 #include <Pegasus/Common/Config.h>
|
41 kumpf 1.21 #include <Pegasus/Common/Linkage.h>
42 #include <Pegasus/Common/CIMName.h>
|
43 mike 1.11 #include <Pegasus/Common/CIMValue.h>
44 #include <Pegasus/Common/Sharable.h>
45 #include <Pegasus/Common/Array.h>
|
46 kumpf 1.24 #include <Pegasus/Common/InternalException.h>
|
47 mike 1.11 #include <Pegasus/Common/CIMFlavor.h>
48 #include <Pegasus/Common/CIMScope.h>
49
50 PEGASUS_NAMESPACE_BEGIN
51
52 class CIMConstQualifierDecl;
53 class CIMQualifierDecl;
54
55 class PEGASUS_COMMON_LINKAGE CIMQualifierDeclRep : public Sharable
56 {
57 public:
58
59 CIMQualifierDeclRep(
|
60 kumpf 1.21 const CIMName& name,
|
61 mike 1.11 const CIMValue& value,
|
62 kumpf 1.23 const CIMScope & scope,
63 const CIMFlavor & flavor,
|
64 mike 1.11 Uint32 arraySize);
65
66 virtual ~CIMQualifierDeclRep();
67
|
68 kumpf 1.21 const CIMName& getName() const
|
69 mike 1.11 {
70 return _name;
71 }
72
|
73 kumpf 1.21 void setName(const CIMName& name);
|
74 mike 1.11
75 CIMType getType() const
76 {
77 return _value.getType();
78 }
79
80 Boolean isArray() const
81 {
82 return _value.isArray();
83 }
84
85 const CIMValue& getValue() const
86 {
87 return _value;
88 }
89
90 void setValue(const CIMValue& value);
91
|
92 kumpf 1.22 const CIMScope & getScope () const
|
93 mike 1.11 {
94 return _scope;
95 }
96
|
97 kumpf 1.23 const CIMFlavor & getFlavor() const
|
98 mike 1.11 {
99 return _flavor;
100 }
101
102 Uint32 getArraySize() const
103 {
104 return _arraySize;
105 }
106
|
107 david.dillard 1.27 void toXml(Array<char>& out) const;
|
108 mike 1.11
|
109 david.dillard 1.27 void toMof(Array<char>& out) const;
|
110 mike 1.12
|
111 mike 1.11 Boolean identical(const CIMQualifierDeclRep* x) const;
112
113 CIMQualifierDeclRep* clone() const
114 {
115 return new CIMQualifierDeclRep(*this);
116 }
117
118 private:
119
120 CIMQualifierDeclRep();
121
122 CIMQualifierDeclRep(const CIMQualifierDeclRep& x);
123
|
124 kumpf 1.14 // This method is declared and made private so that the compiler does
125 // not implicitly define a default copy constructor.
126 CIMQualifierDeclRep& operator=(const CIMQualifierDeclRep& x)
127 {
|
128 kumpf 1.18 //PEGASUS_ASSERT(0);
|
129 kumpf 1.14 return *this;
130 }
|
131 mike 1.11
|
132 kumpf 1.21 CIMName _name;
|
133 mike 1.11 CIMValue _value;
|
134 kumpf 1.22 CIMScope _scope;
|
135 kumpf 1.23 CIMFlavor _flavor;
|
136 mike 1.11 Uint32 _arraySize;
137 };
138
139 PEGASUS_NAMESPACE_END
140
141 #endif /* Pegasus_QualifierDeclRep_h */
|