(file) Return to CIMQualifierList.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

 1 mike  1.1 //BEGIN_LICENSE
 2           //
 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           //
20           //END_LICENSE
21           //BEGIN_HISTORY
22 mike  1.1 //
23           // Author:
24           //
25           // $Log: CIMQualifierList.h,v $
26 mike  1.2 // Revision 1.1  2001/02/18 18:39:06  mike
27           // new
28           //
29 mike  1.1 // Revision 1.2  2001/02/18 03:56:01  mike
30 mike  1.2 // Changed more class names (e.g., ConstClassDecl -> ConstCIMClass)
31 mike  1.1 //
32           // Revision 1.1  2001/02/16 02:07:06  mike
33           // Renamed many classes and headers (using new CIM prefixes).
34           //
35           // Revision 1.1.1.1  2001/01/14 19:53:09  mike
36           // Pegasus import
37           //
38           //
39           //END_HISTORY
40           
41           ////////////////////////////////////////////////////////////////////////////////
42           //
43           // CIMQualifierList.h
44           //
45           //	All class represents a list of CIM qualifiers.
46           //
47           ////////////////////////////////////////////////////////////////////////////////
48           
49           #ifndef Pegasus_QualifierList_h
50           #define Pegasus_QualifierList_h
51           
52 mike  1.1 #include <Pegasus/Common/Config.h>
53           #include <Pegasus/Common/CIMQualifier.h>
54           #include <Pegasus/Common/Array.h>
55           #include <Pegasus/Common/Pair.h>
56           
57           PEGASUS_NAMESPACE_BEGIN
58           
59           class DeclContext;
60           
61           class PEGASUS_COMMON_LINKAGE CIMQualifierList
62           {
63           public:
64           
65               CIMQualifierList& add(const CIMQualifier& qualifier);
66           
67               Uint32 getCount() const { return _qualifiers.getSize(); }
68           
69               CIMQualifier getQualifier(Uint32 pos) { return _qualifiers[pos]; }
70           
71               CIMConstQualifier getQualifier(Uint32 pos) const { return _qualifiers[pos]; }
72           
73 mike  1.1     Uint32 find(const String& name) const;
74           
75               void resolve(
76           	DeclContext* declContext,
77           	const String& nameSpace,
78           	Uint32 scope,
79           	Boolean isInstancePart,
80           	CIMQualifierList& inheritedQualifiers);
81           
82               void toXml(Array<Sint8>& out) const;
83           
84               void print() const;
85           
86               Boolean identical(const CIMQualifierList& x) const;
87           
88               void cloneTo(CIMQualifierList& x) const;
89           
90           private:
91           
92               Array<CIMQualifier> _qualifiers;
93           };
94 mike  1.1 
95           PEGASUS_NAMESPACE_END
96           
97           #endif /* Pegasus_QualifierList_h */

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2