/scratch/rpmbuild.16050.r16097/pegasus/src/Pegasus/Common/CIMQualifierDecl.h

00001 //%LICENSE////////////////////////////////////////////////////////////////
00002 //
00003 // Licensed to The Open Group (TOG) under one or more contributor license
00004 // agreements.  Refer to the OpenPegasusNOTICE.txt file distributed with
00005 // this work for additional information regarding copyright ownership.
00006 // Each contributor licenses this file to you under the OpenPegasus Open
00007 // Source License; you may not use this file except in compliance with the
00008 // License.
00009 //
00010 // Permission is hereby granted, free of charge, to any person obtaining a
00011 // copy of this software and associated documentation files (the "Software"),
00012 // to deal in the Software without restriction, including without limitation
00013 // the rights to use, copy, modify, merge, publish, distribute, sublicense,
00014 // and/or sell copies of the Software, and to permit persons to whom the
00015 // Software is furnished to do so, subject to the following conditions:
00016 //
00017 // The above copyright notice and this permission notice shall be included
00018 // in all copies or substantial portions of the Software.
00019 //
00020 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
00021 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
00022 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
00023 // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
00024 // CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
00025 // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
00026 // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
00027 //
00029 //
00030 //%/////////////////////////////////////////////////////////////////////////////
00031 
00032 #ifndef Pegasus_QualifierDecl_h
00033 #define Pegasus_QualifierDecl_h
00034 
00035 #include <Pegasus/Common/Config.h>
00036 #include <Pegasus/Common/Linkage.h>
00037 #include <Pegasus/Common/CIMName.h>
00038 #include <Pegasus/Common/Array.h>
00039 #include <Pegasus/Common/CIMQualifierDecl.h>
00040 #include <Pegasus/Common/CIMFlavor.h>
00041 #include <Pegasus/Common/CIMScope.h>
00042 #include <Pegasus/Common/CIMType.h>
00043 #include <Pegasus/Common/CIMValue.h>
00044 
00045 PEGASUS_NAMESPACE_BEGIN
00046 
00048 //
00049 // CIMQualifierDecl
00050 //
00052 
00053 class CIMConstQualifierDecl;
00054 class CIMClassRep;
00055 class CIMQualifierDeclRep;
00056 
00072 class PEGASUS_COMMON_LINKAGE CIMQualifierDecl
00073 {
00074 public:
00075 
00083     CIMQualifierDecl();
00084 
00092     CIMQualifierDecl(const CIMQualifierDecl& x);
00093 
00107     CIMQualifierDecl(
00108         const CIMName& name,
00109         const CIMValue& value,
00110         const CIMScope & scope,
00111         const CIMFlavor & flavor = CIMFlavor (CIMFlavor::DEFAULTS),
00112         Uint32 arraySize = 0);
00113 
00117     ~CIMQualifierDecl();
00118 
00126     CIMQualifierDecl& operator=(const CIMQualifierDecl& x);
00127 
00134     const CIMName& getName() const;
00135 
00142     void setName(const CIMName& name);
00143 
00150     CIMType getType() const;
00151 
00158     Boolean isArray() const;
00159 
00166     const CIMValue& getValue() const;
00167 
00175     void setValue(const CIMValue& value);
00176 
00183     const CIMScope & getScope() const;
00184 
00191     const CIMFlavor & getFlavor() const;
00192 
00199     Uint32 getArraySize() const;
00200 
00205     Boolean isUninitialized() const;
00206 
00215     Boolean identical(const CIMConstQualifierDecl& x) const;
00216 
00224     CIMQualifierDecl clone() const;
00225 
00226 private:
00227 
00228     CIMQualifierDecl(CIMQualifierDeclRep* rep);
00229 
00230     CIMQualifierDeclRep* _rep;
00231 
00232     friend class CIMConstQualifierDecl;
00233     friend class CIMClassRep;
00234     friend class XmlWriter;
00235     friend class MofWriter;
00236 };
00237 
00239 //
00240 // CIMConstQualifierDecl
00241 //
00243 
00252 class PEGASUS_COMMON_LINKAGE CIMConstQualifierDecl
00253 {
00254 public:
00255 
00263     CIMConstQualifierDecl();
00264 
00272     CIMConstQualifierDecl(const CIMConstQualifierDecl& x);
00273 
00281     CIMConstQualifierDecl(const CIMQualifierDecl& x);
00282 
00297     CIMConstQualifierDecl(
00298         const CIMName& name,
00299         const CIMValue& value,
00300         const CIMScope & scope,
00301         const CIMFlavor & flavor = CIMFlavor (CIMFlavor::DEFAULTS),
00302         Uint32 arraySize = 0);
00303 
00307     ~CIMConstQualifierDecl();
00308 
00316     CIMConstQualifierDecl& operator=(const CIMConstQualifierDecl& x);
00317 
00325     CIMConstQualifierDecl& operator=(const CIMQualifierDecl& x);
00326 
00333     const CIMName& getName() const;
00334 
00341     CIMType getType() const;
00342 
00349     Boolean isArray() const;
00350 
00357     const CIMValue& getValue() const;
00358 
00365     const CIMScope & getScope() const;
00366 
00373     const CIMFlavor & getFlavor() const;
00374 
00381     Uint32 getArraySize() const;
00382 
00387     Boolean isUninitialized() const;
00388 
00397     Boolean identical(const CIMConstQualifierDecl& x) const;
00398 
00407     CIMQualifierDecl clone() const;
00408 
00409 private:
00410 
00411     CIMQualifierDeclRep* _rep;
00412 
00413     friend class CIMQualifierDecl;
00414     friend class XmlWriter;
00415     friend class MofWriter;
00416 };
00417 
00418 #define PEGASUS_ARRAY_T CIMQualifierDecl
00419 # include <Pegasus/Common/ArrayInter.h>
00420 #undef PEGASUS_ARRAY_T
00421 
00422 PEGASUS_NAMESPACE_END
00423 
00424 #endif /* Pegasus_QualifierDecl_h */