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

  1 karl  1.30 //%2006////////////////////////////////////////////////////////////////////////
  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 karl  1.30 // Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 12            // EMC Corporation; Symantec Corporation; The Open Group.
 13 mike  1.11 //
 14            // Permission is hereby granted, free of charge, to any person obtaining a copy
 15 kumpf 1.19 // 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.11 // 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.19 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
 22 mike  1.11 // 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.19 // 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.11 // 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.27 //                  (carolann_graves@hp.com)
 36                    //              David Dillard, VERITAS Software Corp.
 37                    //                  (david.dillard@veritas.com)
 38 mike          1.11 //
 39                    //%/////////////////////////////////////////////////////////////////////////////
 40                    
 41                    #ifndef Pegasus_QualifierDeclRep_h
 42                    #define Pegasus_QualifierDeclRep_h
 43                    
 44                    #include <Pegasus/Common/Config.h>
 45 kumpf         1.21 #include <Pegasus/Common/Linkage.h>
 46                    #include <Pegasus/Common/CIMName.h>
 47 mike          1.11 #include <Pegasus/Common/CIMValue.h>
 48                    #include <Pegasus/Common/Sharable.h>
 49                    #include <Pegasus/Common/Array.h>
 50 kumpf         1.24 #include <Pegasus/Common/InternalException.h>
 51 mike          1.11 #include <Pegasus/Common/CIMFlavor.h>
 52                    #include <Pegasus/Common/CIMScope.h>
 53 mike          1.29 #include <Pegasus/Common/Buffer.h>
 54 mike          1.11 
 55                    PEGASUS_NAMESPACE_BEGIN
 56                    
 57                    class CIMConstQualifierDecl;
 58                    class CIMQualifierDecl;
 59                    
 60                    class PEGASUS_COMMON_LINKAGE CIMQualifierDeclRep : public Sharable
 61                    {
 62                    public:
 63                    
 64                        CIMQualifierDeclRep(
 65 kumpf         1.21 	const CIMName& name, 
 66 mike          1.11 	const CIMValue& value, 
 67 kumpf         1.23 	const CIMScope & scope,
 68                    	const CIMFlavor & flavor,
 69 mike          1.11 	Uint32 arraySize);
 70                    
 71                        virtual ~CIMQualifierDeclRep();
 72                    
 73 kumpf         1.21     const CIMName& getName() const 
 74 mike          1.11     { 
 75                    	return _name; 
 76                        }
 77                    
 78 kumpf         1.21     void setName(const CIMName& name);
 79 mike          1.11 
 80                        CIMType getType() const 
 81                        {
 82                    	return _value.getType(); 
 83                        }
 84                    
 85                        Boolean isArray() const 
 86                        {
 87                    	return _value.isArray(); 
 88                        }
 89                    
 90                        const CIMValue& getValue() const 
 91                        { 
 92                    	return _value; 
 93                        }
 94                    
 95                        void setValue(const CIMValue& value);
 96                    
 97 kumpf         1.22     const CIMScope & getScope () const 
 98 mike          1.11     {
 99                    	return _scope; 
100                        }
101                    
102 kumpf         1.23     const CIMFlavor & getFlavor() const 
103 mike          1.11     {
104                    	return _flavor; 
105                        }
106                    
107                        Uint32 getArraySize() const 
108                        {
109                    	return _arraySize; 
110                        }
111                    
112 mike          1.29     void toXml(Buffer& out) const;
113 mike          1.11 
114 mike          1.29     void toMof(Buffer& out) const;
115 mike          1.12 
116 mike          1.11     Boolean identical(const CIMQualifierDeclRep* x) const;
117                    
118                        CIMQualifierDeclRep* clone() const
119                        {
120                    	return new CIMQualifierDeclRep(*this);
121                        }
122                    
123                    private:
124                    
125                        CIMQualifierDeclRep();
126                    
127                        CIMQualifierDeclRep(const CIMQualifierDeclRep& x);
128                    
129 kumpf         1.14     // This method is declared and made private so that the compiler does
130                        // not implicitly define a default copy constructor.
131                        CIMQualifierDeclRep& operator=(const CIMQualifierDeclRep& x)
132                        {
133 kumpf         1.18         //PEGASUS_ASSERT(0);
134 kumpf         1.14         return *this;
135                        }
136 mike          1.11 
137 kumpf         1.21     CIMName _name;
138 mike          1.11     CIMValue _value;
139 kumpf         1.22     CIMScope _scope;
140 kumpf         1.23     CIMFlavor _flavor;
141 mike          1.11     Uint32 _arraySize;
142                    };
143                    
144                    PEGASUS_NAMESPACE_END
145                    
146                    #endif /* Pegasus_QualifierDeclRep_h */

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2