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

  1 a.dunfey 1.32.2.1 //%2006////////////////////////////////////////////////////////////////////////
  2 mike     1.15     //
  3 karl     1.29     // 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.28     // IBM Corp.; EMC Corporation, The Open Group.
  7 karl     1.29     // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
  8                   // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
  9 karl     1.31     // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 10                   // EMC Corporation; VERITAS Software Corporation; The Open Group.
 11 a.dunfey 1.32.2.1 // Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 12                   // EMC Corporation; Symantec Corporation; The Open Group.
 13 mike     1.15     //
 14                   // Permission is hereby granted, free of charge, to any person obtaining a copy
 15 kumpf    1.21     // of this software and associated documentation files (the "Software"), to
 16                   // deal in the Software without restriction, including without limitation the
 17                   // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 18 mike     1.15     // sell copies of the Software, and to permit persons to whom the Software is
 19                   // furnished to do so, subject to the following conditions:
 20                   // 
 21 kumpf    1.21     // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
 22 mike     1.15     // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
 23                   // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
 24 kumpf    1.21     // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
 25                   // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 26                   // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 27 mike     1.15     // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 28                   // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 29                   //
 30                   //==============================================================================
 31                   //
 32                   // Author: Mike Brasher (mbrasher@bmc.com)
 33                   //
 34 kumpf    1.22     // Modified By: Carol Ann Krug Graves, Hewlett-Packard Company
 35 david.dillard 1.30     //                  (carolann_graves@hp.com)
 36                        //              David Dillard, VERITAS Software Corp.
 37                        //                  (david.dillard@veritas.com)
 38 mike          1.15     //
 39                        //%/////////////////////////////////////////////////////////////////////////////
 40                        
 41                        #ifndef Pegasus_MethodRep_h
 42                        #define Pegasus_MethodRep_h
 43                        
 44                        #include <Pegasus/Common/Config.h>
 45 kumpf         1.24     #include <Pegasus/Common/Linkage.h>
 46 kumpf         1.26     #include <Pegasus/Common/InternalException.h>
 47 mike          1.15     #include <Pegasus/Common/String.h>
 48 kumpf         1.24     #include <Pegasus/Common/CIMName.h>
 49 mike          1.15     #include <Pegasus/Common/CIMQualifier.h>
 50                        #include <Pegasus/Common/CIMQualifierList.h>
 51                        #include <Pegasus/Common/CIMParameter.h>
 52                        #include <Pegasus/Common/Sharable.h>
 53                        #include <Pegasus/Common/Pair.h>
 54                        
 55                        PEGASUS_NAMESPACE_BEGIN
 56                        
 57                        class CIMConstMethod;
 58                        class DeclContext;
 59                        
 60                        class PEGASUS_COMMON_LINKAGE CIMMethodRep : public Sharable
 61                        {
 62                        public:
 63                        
 64                            CIMMethodRep(
 65 kumpf         1.24     	const CIMName& name,
 66 mike          1.15     	CIMType type,
 67 kumpf         1.24     	const CIMName& classOrigin,
 68 mike          1.15     	Boolean propagated);
 69                        
 70                            ~CIMMethodRep();
 71                        
 72 kumpf         1.24         virtual const CIMName& getName() const
 73 mike          1.15         {
 74                        	return _name;
 75                            }
 76                        
 77 kumpf         1.24         void setName(const CIMName& name);
 78 mike          1.15     
 79                            CIMType getType() const
 80                            {
 81                        	return _type;
 82                            }
 83                        
 84                            void setType(CIMType type);
 85                        
 86 kumpf         1.24         const CIMName& getClassOrigin() const
 87 mike          1.15         {
 88                        	return _classOrigin;
 89                            }
 90                        
 91 kumpf         1.24         void setClassOrigin(const CIMName& classOrigin);
 92 mike          1.15     
 93                            Boolean getPropagated() const
 94                            {
 95                        	return _propagated;
 96                            }
 97                        
 98                            void setPropagated(Boolean propagated)
 99                            {
100                        	_propagated = propagated;
101                            }
102                        
103                            void addQualifier(const CIMQualifier& qualifier)
104                            {
105                        	_qualifiers.add(qualifier);
106                            }
107 kumpf         1.18     
108 kumpf         1.24         Uint32 findQualifier(const CIMName& name) const
109 mike          1.15         {
110                        	return _qualifiers.find(name);
111                            }
112                        
113 kumpf         1.27         CIMQualifier getQualifier(Uint32 index)
114 mike          1.15         {
115 kumpf         1.27     	return _qualifiers.getQualifier(index);
116 mike          1.15         }
117                        
118                        
119 kumpf         1.27         CIMConstQualifier getQualifier(Uint32 index) const
120 mike          1.15         {
121 kumpf         1.27     	return _qualifiers.getQualifier(index);
122 mike          1.15         }
123 kumpf         1.18     
124 kumpf         1.27         void removeQualifier(Uint32 index)
125 mike          1.15         {
126 kumpf         1.27     	_qualifiers.removeQualifier(index);
127 mike          1.15         }
128                        
129                        
130                            Uint32 getQualifierCount() const
131                            {
132                        	return _qualifiers.getCount();
133                            }
134                        
135                            void addParameter(const CIMParameter& x);
136                        
137 kumpf         1.24         Uint32 findParameter(const CIMName& name) const;
138 mike          1.15     
139 kumpf         1.27         CIMParameter getParameter(Uint32 index);
140 mike          1.15     
141 kumpf         1.27         CIMConstParameter getParameter(Uint32 index) const
142 mike          1.15         {
143 kumpf         1.27     	return ((CIMMethodRep*)this)->getParameter(index);
144 mike          1.15         }
145                        
146 kumpf         1.27         void removeParameter (Uint32 index);
147 kumpf         1.25     
148 mike          1.15         Uint32 getParameterCount() const;
149                        
150                            void resolve(
151                        	DeclContext* declContext,
152 kumpf         1.24     	const CIMNamespaceName& nameSpace,
153 mike          1.15     	const CIMConstMethod& method);
154                        
155                            void resolve(
156                        	DeclContext* declContext,
157 kumpf         1.24     	const CIMNamespaceName& nameSpace);
158 mike          1.15     
159 mike          1.32         void toXml(Buffer& out) const;
160 mike          1.15     
161 mike          1.32         void toMof(Buffer& out) const;
162 mike          1.16     
163 mike          1.15         Boolean identical(const CIMMethodRep* x) const;
164                        
165                            CIMMethodRep* clone() const
166                            {
167                        	return new CIMMethodRep(*this);
168                            }
169                        
170                        private:
171                        
172                            CIMMethodRep();
173                        
174                            CIMMethodRep(const CIMMethodRep& x);
175                        
176 kumpf         1.17         // This method is declared and made private so that the compiler does
177                            // not implicitly define a default copy constructor.
178                            CIMMethodRep& operator=(const CIMMethodRep& x)
179                            {
180 kumpf         1.20             //PEGASUS_ASSERT(0);
181 kumpf         1.17             return *this;
182                            }
183 mike          1.15     
184 kumpf         1.24         CIMName _name;
185 mike          1.15         CIMType _type;
186 kumpf         1.24         CIMName _classOrigin;
187 mike          1.15         Boolean _propagated;
188                            CIMQualifierList _qualifiers;
189                            Array<CIMParameter> _parameters;
190                        
191                            friend class CIMClassRep;
192                        };
193                        
194                        PEGASUS_NAMESPACE_END
195                        
196                        #endif /* Pegasus_MethodRep_h */

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2