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

Diff for /pegasus/src/Pegasus/Common/CIMQualifier.h between version 1.16 and 1.17

version 1.16, 2002/03/25 16:27:51 version 1.17, 2002/03/28 02:57:54
Line 82 
Line 82 
     @param String representing CIMName for the new qualifier     @param String representing CIMName for the new qualifier
     @param value     @param value
     @param flavor - Flavor defined for this qualifier definition. Default for this     @param flavor - Flavor defined for this qualifier definition. Default for this
         parameter is CIMFlavor::DEFAULTS (which allows override and tosubclass).          parameter is CIMFlavor::NONE.
     @param propoagated - Boolean defining whether this is a propagated qualifier.     @param propoagated - Boolean defining whether this is a propagated qualifier.
         This is an optional parameter with default = false         This is an optional parameter with default = false
     @return -Returns the instantiated qualifier object or throws an exception     @return -Returns the instantiated qualifier object or throws an exception
Line 94 
Line 94 
     CIMQualifier(     CIMQualifier(
         const String& name,         const String& name,
         const CIMValue& value,         const CIMValue& value,
         Uint32 flavor = CIMFlavor::DEFAULTS,          Uint32 flavor = CIMFlavor::NONE,
         Boolean propagated = false)         Boolean propagated = false)
     {     {
         _rep = new CIMQualifierRep(name, value, flavor, propagated);         _rep = new CIMQualifierRep(name, value, flavor, propagated);
Line 173 
Line 173 
         _rep->setValue(value);         _rep->setValue(value);
     }     }
  
         /* setFlavor - Sets the value defined on input into the Flavor variable          /* setFlavor - Sets the bits defined on input into the Flavor variable
                 for the Qualifier Object.                 for the Qualifier Object.
                 @param flavor - Uint32 defines the flavor bits to be set.                 @param flavor - Uint32 defines the flavor bits to be set.
         */         */
Line 182 
Line 182 
                 _checkRep();                 _checkRep();
                 _rep->setFlavor(flavor);                 _rep->setFlavor(flavor);
     }     }
           /* unsetFlavor - Resets the bits defined for the flavor
                   for the Qualifier Object with the input.
                   @param flavor - Uint32 defines the flavor bits to be set.
           */
       void unsetFlavor(Uint32 flavor)
       {
                   _checkRep();
                   _rep->unsetFlavor(flavor);
       }
  
     /** getFlavor - Gets the Flavor field from a Qualifier     /** getFlavor - Gets the Flavor field from a Qualifier
     @return - Uint32 with the Flavor flags that can be tested     @return - Uint32 with the Flavor flags that can be tested
Line 204 
Line 213 
         */         */
         Boolean isFlavor(Uint32 flavor) const         Boolean isFlavor(Uint32 flavor) const
         {         {
                 return ((getFlavor() & flavor) !=0);                  return _rep->isFlavor(flavor);
         }  
         /** Determine if Flavor toSubClass set for this qualifier  
         */  
         Boolean isFlavorToSubclass() const  
         {  
                 return ((getFlavor() & CIMFlavor::TOSUBCLASS) !=0);  
         }  
   
         /** Determine if Flavor ToInstance set for this qualifier  
         */  
         Boolean isFlavorToInstance() const  
         {  
                 return ((getFlavor() & CIMFlavor::TOINSTANCE) !=0);  
         }         }
           /* resolveFlavor - Function used only in object creation to
         /** Determine if Flavor Overridable set for this qualifier                  resolve the combination of a qualifer flavor input and
                   the corresponding inherited flavor from declaration or
                   superclass and set the current qualifier to that
                   definition.     The functions changes the current flavor based
                   on the characteristics of the inheritance.
                   @param inheritedFlavor - The flavor inherited from higher level
                   @param inherited - True if inherited from definition. False if this
                   is definition that inherits from the declaration
         */         */
         Boolean isFlavorOverridable() const          void resolveFlavor(Uint32 inheritedFlavor, Boolean inherited)
         {         {
                 return ((getFlavor() & CIMFlavor::OVERRIDABLE) !=0);                  _checkRep();
                   _rep->resolveFlavor(inheritedFlavor, inherited);
         }         }
       /** getPropagated returns the propagated indicator
     /** CIMMethod          @return Uint32 - TBD
  
    */    */
     const Uint32 getPropagated() const     const Uint32 getPropagated() const


Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2