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

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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2