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

  1 mike  1.11 //%/////////////////////////////////////////////////////////////////////////////
  2            //
  3 kumpf 1.19 // Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM,
  4            // The Open Group, Tivoli Systems
  5 mike  1.11 //
  6            // Permission is hereby granted, free of charge, to any person obtaining a copy
  7 kumpf 1.19 // of this software and associated documentation files (the "Software"), to
  8            // deal in the Software without restriction, including without limitation the
  9            // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 10 mike  1.11 // sell copies of the Software, and to permit persons to whom the Software is
 11            // furnished to do so, subject to the following conditions:
 12            // 
 13 kumpf 1.19 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
 14 mike  1.11 // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
 15            // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
 16 kumpf 1.19 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
 17            // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 18            // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 19 mike  1.11 // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 20            // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 21            //
 22            //==============================================================================
 23            //
 24            // Author: Mike Brasher (mbrasher@bmc.com)
 25            //
 26            // Modified By:
 27            //
 28            //%/////////////////////////////////////////////////////////////////////////////
 29            
 30            #ifndef Pegasus_QualifierDeclRep_h
 31            #define Pegasus_QualifierDeclRep_h
 32            
 33            #include <Pegasus/Common/Config.h>
 34 kumpf 1.21 #include <Pegasus/Common/Linkage.h>
 35            #include <Pegasus/Common/CIMName.h>
 36 mike  1.11 #include <Pegasus/Common/CIMValue.h>
 37            #include <Pegasus/Common/Sharable.h>
 38            #include <Pegasus/Common/Array.h>
 39            #include <Pegasus/Common/Exception.h>
 40            #include <Pegasus/Common/CIMFlavor.h>
 41            #include <Pegasus/Common/CIMScope.h>
 42            
 43            PEGASUS_NAMESPACE_BEGIN
 44            
 45            class CIMConstQualifierDecl;
 46            class CIMQualifierDecl;
 47            
 48            class PEGASUS_COMMON_LINKAGE CIMQualifierDeclRep : public Sharable
 49            {
 50            public:
 51            
 52                CIMQualifierDeclRep(
 53 kumpf 1.21 	const CIMName& name, 
 54 mike  1.11 	const CIMValue& value, 
 55            	Uint32 scope,
 56            	Uint32 flavor,
 57            	Uint32 arraySize);
 58            
 59                virtual ~CIMQualifierDeclRep();
 60            
 61 kumpf 1.21     const CIMName& getName() const 
 62 mike  1.11     { 
 63            	return _name; 
 64                }
 65            
 66 kumpf 1.21     void setName(const CIMName& name);
 67 mike  1.11 
 68                CIMType getType() const 
 69                {
 70            	return _value.getType(); 
 71                }
 72            
 73                Boolean isArray() const 
 74                {
 75            	return _value.isArray(); 
 76                }
 77            
 78                const CIMValue& getValue() const 
 79                { 
 80            	return _value; 
 81                }
 82            
 83                void setValue(const CIMValue& value);
 84            
 85                Uint32 getScope() const 
 86                {
 87            	return _scope; 
 88 mike  1.11     }
 89            
 90                Uint32 getFlavor() const 
 91                {
 92            	return _flavor; 
 93                }
 94            
 95                Uint32 getArraySize() const 
 96                {
 97            	return _arraySize; 
 98                }
 99            
100                void toXml(Array<Sint8>& out) const;
101            
102 mike  1.12     void toMof(Array<Sint8>& out) const;
103            
104 mike  1.11     Boolean identical(const CIMQualifierDeclRep* x) const;
105            
106                CIMQualifierDeclRep* clone() const
107                {
108            	return new CIMQualifierDeclRep(*this);
109                }
110            
111            private:
112            
113                CIMQualifierDeclRep();
114            
115                CIMQualifierDeclRep(const CIMQualifierDeclRep& x);
116            
117 kumpf 1.14     // This method is declared and made private so that the compiler does
118                // not implicitly define a default copy constructor.
119                CIMQualifierDeclRep& operator=(const CIMQualifierDeclRep& x)
120                {
121 kumpf 1.18         //PEGASUS_ASSERT(0);
122 kumpf 1.14         return *this;
123                }
124 mike  1.11 
125 kumpf 1.21     CIMName _name;
126 mike  1.11     CIMValue _value;
127                Uint32 _scope;
128                Uint32 _flavor;
129                Uint32 _arraySize;
130            };
131            
132            PEGASUS_NAMESPACE_END
133            
134            #endif /* Pegasus_QualifierDeclRep_h */

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2