/scratch/rpmbuild.5425.Bj5455/pegasus/src/Pegasus/Common/CIMQualifier.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_Qualifier_h
00033 #define Pegasus_Qualifier_h
00034 
00035 #include <Pegasus/Common/Config.h>
00036 #include <Pegasus/Common/Linkage.h>
00037 #include <Pegasus/Common/CIMName.h>
00038 #include <Pegasus/Common/CIMFlavor.h>
00039 #include <Pegasus/Common/CIMType.h>
00040 #include <Pegasus/Common/CIMValue.h>
00041 
00042 PEGASUS_NAMESPACE_BEGIN
00043 
00045 //
00046 // CIMQualifier
00047 //
00049 
00050 class CIMConstQualifier;
00051 class CIMClassRep;
00052 class Resolver;
00053 class CIMQualifierRep;
00054 
00068 class PEGASUS_COMMON_LINKAGE CIMQualifier
00069 {
00070 public:
00071 
00079     CIMQualifier();
00080 
00087     CIMQualifier(const CIMQualifier& x);
00088 
00101     CIMQualifier(
00102         const CIMName& name,
00103         const CIMValue& value,
00104         const CIMFlavor & flavor = CIMFlavor (CIMFlavor::NONE),
00105         Boolean propagated = false);
00106 
00110     ~CIMQualifier();
00111 
00119     CIMQualifier& operator=(const CIMQualifier& x);
00120 
00127     const CIMName& getName() const;
00128 
00137     void setName(const CIMName& name);
00138 
00145     CIMType getType() const;
00146 
00153     Boolean isArray() const;
00154 
00161     const CIMValue& getValue() const;
00162 
00169     void setValue(const CIMValue& value);
00170 
00177     void setFlavor(const CIMFlavor & flavor);
00178 
00185     void unsetFlavor(const CIMFlavor & flavor);
00186 
00193     const CIMFlavor & getFlavor() const;
00194 
00207     Uint32 getPropagated() const;
00208 
00217     void setPropagated(Boolean propagated);
00218 
00223     Boolean isUninitialized() const;
00224 
00233     Boolean identical(const CIMConstQualifier& x) const;
00234 
00242     CIMQualifier clone() const;
00243 
00244 private:
00245 
00246     CIMQualifier(CIMQualifierRep* rep);
00247 
00248     CIMQualifierRep* _rep;
00249 
00250     friend class CIMConstQualifier;
00251     friend class CIMClassRep;
00252     friend class Resolver;
00253     friend class XmlWriter;
00254     friend class MofWriter;
00255     friend class BinaryStreamer;
00256     friend class CIMQualifierList;
00257 };
00258 
00259 
00261 //
00262 // CIMConstQualifier
00263 //
00265 
00273 class PEGASUS_COMMON_LINKAGE CIMConstQualifier
00274 {
00275 public:
00276 
00284     CIMConstQualifier();
00285 
00293     CIMConstQualifier(const CIMConstQualifier& x);
00294 
00302     CIMConstQualifier(const CIMQualifier& x);
00303 
00316     CIMConstQualifier(
00317         const CIMName& name,
00318         const CIMValue& value,
00319         const CIMFlavor & flavor = CIMFlavor (CIMFlavor::NONE),
00320         Boolean propagated = false);
00321 
00325     ~CIMConstQualifier();
00326 
00334     CIMConstQualifier& operator=(const CIMConstQualifier& x);
00335 
00343     CIMConstQualifier& operator=(const CIMQualifier& x);
00344 
00351     const CIMName& getName() const;
00352 
00359     CIMType getType() const;
00360 
00367     Boolean isArray() const;
00368 
00375     const CIMValue& getValue() const;
00376 
00383     const CIMFlavor & getFlavor() const;
00384 
00397     Uint32 getPropagated() const;
00398 
00403     Boolean isUninitialized() const;
00404 
00413     Boolean identical(const CIMConstQualifier& x) const;
00414 
00423     CIMQualifier clone() const;
00424 
00425 private:
00426 
00427     CIMQualifierRep* _rep;
00428 
00429     friend class CIMQualifier;
00430     friend class XmlWriter;
00431     friend class MofWriter;
00432 };
00433 
00434 #define PEGASUS_ARRAY_T CIMQualifier
00435 # include <Pegasus/Common/ArrayInter.h>
00436 #undef PEGASUS_ARRAY_T
00437 
00438 PEGASUS_NAMESPACE_END
00439 
00440 #endif /* Pegasus_Qualifier_h */