2 mike 1.1 //
3 // Copyright (c) 2000 The Open Group, BMC Software, Tivoli Systems, IBM
4 //
5 // Permission is hereby granted, free of charge, to any person obtaining a
6 // copy of this software and associated documentation files (the "Software"),
7 // to deal in the Software without restriction, including without limitation
8 // the rights to use, copy, modify, merge, publish, distribute, sublicense,
9 // and/or sell copies of the Software, and to permit persons to whom the
10 // Software is furnished to do so, subject to the following conditions:
11 //
12 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
15 // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
17 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
18 // DEALINGS IN THE SOFTWARE.
19 //
|
27 mike 1.1
28 #ifndef Pegasus_QualifierDeclRep_h
29 #define Pegasus_QualifierDeclRep_h
30
31 #include <Pegasus/Common/Config.h>
32 #include <Pegasus/Common/String.h>
33 #include <Pegasus/Common/CIMValue.h>
34 #include <Pegasus/Common/Sharable.h>
35 #include <Pegasus/Common/Array.h>
36 #include <Pegasus/Common/Pair.h>
37 #include <Pegasus/Common/Sharable.h>
38 #include <Pegasus/Common/Exception.h>
39 #include <Pegasus/Common/CIMFlavor.h>
40 #include <Pegasus/Common/CIMScope.h>
41
42 PEGASUS_NAMESPACE_BEGIN
43
44 class CIMConstQualifierDecl;
45 class CIMQualifierDecl;
46
47 class PEGASUS_COMMON_LINKAGE CIMQualifierDeclRep : public Sharable
48 mike 1.1 {
49 public:
50
51 CIMQualifierDeclRep(
52 const String& name,
53 const CIMValue& value,
54 Uint32 scope,
55 Uint32 flavor,
56 Uint32 arraySize);
57
58 virtual ~CIMQualifierDeclRep();
59
60 const String& getName() const
61 {
62 return _name;
63 }
64
65 void setName(const String& name);
66
67 CIMType getType() const
68 {
69 mike 1.1 return _value.getType();
70 }
71
72 Boolean isArray() const
73 {
74 return _value.isArray();
75 }
76
77 const CIMValue& getValue() const
78 {
79 return _value;
80 }
81
|