/scratch/rpmbuild.17644.V17674/pegasus/src/Pegasus/Common/CIMFlavor.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_Flavor_h 00033 #define Pegasus_Flavor_h 00034 00035 #include <Pegasus/Common/Config.h> 00036 #include <Pegasus/Common/String.h> 00037 #include <Pegasus/Common/Linkage.h> 00038 00039 PEGASUS_NAMESPACE_BEGIN 00040 00053 class PEGASUS_COMMON_LINKAGE CIMFlavor 00054 { 00055 public: 00056 00060 CIMFlavor(); 00061 00068 CIMFlavor(const CIMFlavor & flavor); 00069 00076 CIMFlavor& operator=(const CIMFlavor& flavor); 00077 00082 void addFlavor(const CIMFlavor& flavor); 00083 00088 void removeFlavor(const CIMFlavor& flavor); 00089 00096 Boolean hasFlavor(const CIMFlavor& flavor) const; 00097 00104 Boolean equal(const CIMFlavor& flavor) const; 00105 00113 CIMFlavor operator+(const CIMFlavor& flavor) const; 00114 00122 String toString() const; 00123 00127 static const CIMFlavor NONE; 00128 00132 static const CIMFlavor OVERRIDABLE; 00133 00138 static const CIMFlavor ENABLEOVERRIDE; 00139 00144 static const CIMFlavor DISABLEOVERRIDE; 00145 00149 static const CIMFlavor TOSUBCLASS; 00150 00154 static const CIMFlavor RESTRICTED; 00155 00159 static const CIMFlavor TOINSTANCE; 00160 00165 static const CIMFlavor TRANSLATABLE; 00166 00170 static const CIMFlavor DEFAULTS; 00171 00176 static const CIMFlavor TOSUBELEMENTS; 00177 00178 private: 00179 00180 /* 00181 Constructs a CIMFlavor object with the specified values. 00182 @param flavor A Uint32 representing the set of flavor values. 00183 */ 00184 CIMFlavor(const Uint32 flavor); 00185 00186 Uint32 cimFlavor; 00187 00188 friend class BinaryStreamer; 00189 }; 00190 00191 PEGASUS_NAMESPACE_END 00192 00193 #endif /* Pegasus_Flavor_h */