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

Diff for /pegasus/src/Pegasus/Common/CIMFlavor.h between version 1.8 and 1.12

version 1.8, 2001/12/13 14:53:49 version 1.12, 2002/05/15 20:04:10
Line 22 
Line 22 
 // //
 // Author: Mike Brasher (mbrasher@bmc.com) // Author: Mike Brasher (mbrasher@bmc.com)
 // //
 // Modified By:  // Modified By:  Karl Schopmeyer(k.schopmeyer@opengroup.org)
   //               Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com)
 // //
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
  
 /*  
   
  CIMFlavor.h -- This file declares qualifier flavor constants.  
   
 */  
   
 #ifndef Pegasus_Flavor_h #ifndef Pegasus_Flavor_h
 #define Pegasus_Flavor_h #define Pegasus_Flavor_h
  
Line 40 
Line 35 
 #include <Pegasus/Common/String.h> #include <Pegasus/Common/String.h>
  
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
 /**  
 CIMQualifier flavor constants  /** This structure defines flavor constants borne by CIMQualifier objects.
 */ */
 struct PEGASUS_COMMON_LINKAGE CIMFlavor struct PEGASUS_COMMON_LINKAGE CIMFlavor
 { {
       /** Indicates that the qualifier has no flavors.
       */
     static const Uint32 NONE;     static const Uint32 NONE;
   
       /** Indicates that the qualifier may be overriden.
       */
     static const Uint32 OVERRIDABLE;     static const Uint32 OVERRIDABLE;
       static const Uint32 ENABLEOVERRIDE;
   
       static const Uint32 DISABLEOVERRIDE;
   
       /** Indicates that the qualifier is propagated to the qualifier in the
           subclass with the same name.
       */
     static const Uint32 TOSUBCLASS;     static const Uint32 TOSUBCLASS;
   
           /* Indicates that the qualifier may not be propagated to the qualifier
              in a subclass
           */
           static const Uint32 RESTRICTED;
   
       /** Indicates that the qualifier is propagated to the qualifier in the
           instance with the same name.
       */
   
     static const Uint32 TOINSTANCE;     static const Uint32 TOINSTANCE;
     static const Uint32 TRANSLATABLE;  
  
     // These are the defaults according to the CIM DTD:      /** Indicates whether qualifier is translatable (for internationalization).
     // OVERRIDABLE, TOSUBCLASS      */
       static const Uint32 TRANSLATABLE;
  
       /** Defaults according to the CIM DTD (OVERRIDABLE | TOSUBCLASS).
       */
     static const Uint32 DEFAULTS;     static const Uint32 DEFAULTS;
 };  
  
 /** FlavorToMof - Converts the flavor attributes of a qualifier to CIM MOF      /** Set both toInstance and toinstance according to the CIM DTD (OVERRIDABLE | TOSUBCLASS).
     keywords separated by spaces and returns them as a String.      */
     @param flavor Variable contianing the flavor mask      static const Uint32 TOSUBELEMENTS;
     @return Strin containing the flavor attribute keywords.  
 */      /** Includes all elements of Flavor..
 PEGASUS_COMMON_LINKAGE String FlavorToMof(Uint32 flavor);      */
       static const Uint32 ALL;
 /** FlavorToXML - converts the flavor attributes of a qualifier to cimxml  
     format and puts them into the variable out.  };
     @param out XML output stream into which the xml is places.  
     @param flavor variable containing the flavor definition  
     <pre>  
     // Get flavorkeywords and test for any returned keywords  
     Uint32 flavor = CIMFlavor::DEFAULTS,  
     String flavorString;  
     flavorString = FlavorToMof(_flavor);  
     if (flavorString.size())  
         ...           // code to execute if keywords exist  
   
     </pre>  
 */  
 PEGASUS_COMMON_LINKAGE void FlavorToXml(  
     Array<Sint8>& out,  
     Uint32 flavor);  
  
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END
  


Legend:
Removed from v.1.8  
changed lines
  Added in v.1.12

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2