(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            //%/////////////////////////////////////////////////////////////////////////////
 33            
 34            #ifndef Pegasus_QualifierDeclRep_h
 35            #define Pegasus_QualifierDeclRep_h
 36            
 37            #include <Pegasus/Common/Config.h>
 38 kumpf 1.21 #include <Pegasus/Common/Linkage.h>
 39            #include <Pegasus/Common/CIMName.h>
 40 mike  1.11 #include <Pegasus/Common/CIMValue.h>
 41            #include <Pegasus/Common/Sharable.h>
 42            #include <Pegasus/Common/Array.h>
 43 kumpf 1.24 #include <Pegasus/Common/InternalException.h>
 44 mike  1.11 #include <Pegasus/Common/CIMFlavor.h>
 45            #include <Pegasus/Common/CIMScope.h>
 46 mike  1.29 #include <Pegasus/Common/Buffer.h>
 47 mike  1.11 
 48            PEGASUS_NAMESPACE_BEGIN
 49            
 50            class CIMConstQualifierDecl;
 51            class CIMQualifierDecl;
 52            
 53 mike  1.31 class CIMQualifierDeclRep : public Sharable
 54 mike  1.11 {
 55            public:
 56            
 57                CIMQualifierDeclRep(
 58 kumpf 1.32         const CIMName& name,
 59                    const CIMValue& value,
 60                    const CIMScope & scope,
 61                    const CIMFlavor & flavor,
 62                    Uint32 arraySize);
 63 mike  1.11 
 64                virtual ~CIMQualifierDeclRep();
 65            
 66 kumpf 1.32     const CIMName& getName() const
 67                {
 68                    return _name;
 69 mike  1.11     }
 70            
 71 kumpf 1.21     void setName(const CIMName& name);
 72 mike  1.11 
 73 kumpf 1.32     CIMType getType() const
 74 mike  1.11     {
 75 kumpf 1.32         return _value.getType();
 76 mike  1.11     }
 77            
 78 kumpf 1.32     Boolean isArray() const
 79 mike  1.11     {
 80 kumpf 1.32         return _value.isArray();
 81 mike  1.11     }
 82            
 83 kumpf 1.32     const CIMValue& getValue() const
 84                {
 85                    return _value;
 86 mike  1.11     }
 87            
 88                void setValue(const CIMValue& value);
 89            
 90 kumpf 1.32     const CIMScope & getScope () const
 91 mike  1.11     {
 92 kumpf 1.32         return _scope;
 93 mike  1.11     }
 94            
 95 kumpf 1.32     const CIMFlavor & getFlavor() const
 96 mike  1.11     {
 97 kumpf 1.32         return _flavor;
 98 mike  1.11     }
 99            
100 kumpf 1.32     Uint32 getArraySize() const
101 mike  1.11     {
102 kumpf 1.32         return _arraySize;
103 mike  1.11     }
104            
105 mike  1.29     void toXml(Buffer& out) const;
106 mike  1.11 
107 mike  1.29     void toMof(Buffer& out) const;
108 mike  1.12 
109 mike  1.11     Boolean identical(const CIMQualifierDeclRep* x) const;
110            
111                CIMQualifierDeclRep* clone() const
112                {
113 kumpf 1.32         return new CIMQualifierDeclRep(*this);
114 mike  1.11     }
115            
116            private:
117            
118                CIMQualifierDeclRep(const CIMQualifierDeclRep& x);
119            
120 kumpf 1.33     CIMQualifierDeclRep();    // Unimplemented
121                // Unimplemented
122                CIMQualifierDeclRep& operator=(const CIMQualifierDeclRep& x);
123 mike  1.11 
124 kumpf 1.21     CIMName _name;
125 mike  1.11     CIMValue _value;
126 kumpf 1.22     CIMScope _scope;
127 kumpf 1.23     CIMFlavor _flavor;
128 mike  1.11     Uint32 _arraySize;
129            };
130            
131            PEGASUS_NAMESPACE_END
132            
133            #endif /* Pegasus_QualifierDeclRep_h */

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2