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

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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2