CIMPropertyList.h
1 //%LICENSE////////////////////////////////////////////////////////////////
2 //
3 // Licensed to The Open Group (TOG) under one or more contributor license
4 // agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
5 // this work for additional information regarding copyright ownership.
6 // Each contributor licenses this file to you under the OpenPegasus Open
7 // Source License; you may not use this file except in compliance with the
8 // License.
9 //
10 // Permission is hereby granted, free of charge, to any person obtaining a
11 // copy of this software and associated documentation files (the "Software"),
12 // to deal in the Software without restriction, including without limitation
13 // the rights to use, copy, modify, merge, publish, distribute, sublicense,
14 // and/or sell copies of the Software, and to permit persons to whom the
15 // Software is furnished to do so, subject to the following conditions:
16 //
17 // The above copyright notice and this permission notice shall be included
18 // in all copies or substantial portions of the Software.
19 //
20 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
21 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
23 // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
24 // CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
25 // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
26 // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 //
29 //
30 //%/////////////////////////////////////////////////////////////////////////////
31 
32 #ifndef Pegasus_CIMPropertyList_h
33 #define Pegasus_CIMPropertyList_h
34 
35 #include <Pegasus/Common/Config.h>
36 #include <Pegasus/Common/Array.h>
37 #include <Pegasus/Common/CIMName.h>
38 #include <Pegasus/Common/Linkage.h>
39 
40 PEGASUS_NAMESPACE_BEGIN
41 
42 class CIMPropertyListRep;
43 
61 class PEGASUS_COMMON_LINKAGE CIMPropertyList
62 {
63 public:
64 
74 
82 
97  CIMPropertyList(const Array<CIMName>& propertyNames);
98 
102  ~CIMPropertyList();
103 
121  void set(const Array<CIMName>& propertyNames);
122 
130  CIMPropertyList& operator=(const CIMPropertyList& x);
131 
135  void clear();
136 
141  Boolean isNull() const;
142 
148  Uint32 size() const;
149 
166  const CIMName& operator[](Uint32 index) const;
167 
177  Array<CIMName> getPropertyNameArray() const;
178 
179  Uint32 getCIMNameTag(Uint32 index) const;
180 
181  void append(Array<String> & propertyListArray);
182 
183  void appendCIMNameTag(Uint32 nameTag);
184 
195  Boolean contains(const CIMName& name) const;
196 
215  Boolean useThisProperty(const CIMName& name) const;
216 
225  String toString() const;
226 
227 private:
228 
229  CIMPropertyListRep* _rep;
230 };
231 
232 PEGASUS_NAMESPACE_END
233 
234 #endif /* Pegasus_CIMPropertyList_h */
Definition: String.h:119
Definition: CIMPropertyList.h:61
Definition: CIMName.h:64
Definition: ArrayInter.h:44