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

Diff for /pegasus/src/Pegasus/Common/CIMMethod.h between version 1.7 and 1.13

version 1.7, 2001/05/06 13:16:16 version 1.13, 2001/05/24 00:48:35
Line 177 
Line 177 
     /** CIMMethod findQualifier - returns the position of the qualifier with     /** CIMMethod findQualifier - returns the position of the qualifier with
         the given name.         the given name.
         @param name Name of qualifier to be found.         @param name Name of qualifier to be found.
         @return index of the parameter if found; otherwise Uint32(-1).          @return index of the parameter if found; otherwise PEG_NOT_FOUND.
     */     */
     Uint32 findQualifier(const String& name)     Uint32 findQualifier(const String& name)
     {     {
Line 191 
Line 191 
         return _rep->findQualifier(name);         return _rep->findQualifier(name);
     }     }
  
       /** existsQualifier - returns the position of the qualifier with
           the given name.
           @param name Name of qualifier to be found.
           @return index of the parameter if found; otherwise PEG_NOT_FOUND.
       */
       Boolean existsQualifier(const String& name)
       {
           _checkRep();
           return _rep->existsQualifier(name);
       }
   
       Boolean existsQualifier(const String& name) const
       {
           _checkRep();
           return _rep->existsQualifier(name);
       }
   
   
     /** CIMMethod getQualifier - Gets the CIMQualifier defined by the index     /** CIMMethod getQualifier - Gets the CIMQualifier defined by the index
         input as a parameter.         input as a parameter.
         @param Index of the qualifier requested.         @param Index of the qualifier requested.
Line 210 
Line 228 
         return _rep->getQualifier(pos);         return _rep->getQualifier(pos);
     }     }
  
       /** removeQualifier - Removes the CIMQualifier defined by the
           position input as a parameter.
           @param Position of the qualifier requested.
           @return CIMQualifier object or exception
           @exception OutOfBounds exception if the index is outside the range of
           parameters available from the CIMMethod.
       */
       void removeQualifier(Uint32 pos)
       {
           _checkRep();
           _rep->removeQualifier(pos);
       }
   
   
     /** CIMMethod getQualifierCount - Returns the number of Qualifiers attached     /** CIMMethod getQualifierCount - Returns the number of Qualifiers attached
         to this method.         to this method.
         @return integer representing number of Qualifiers.         @return integer representing number of Qualifiers.
Line 233 
Line 265 
     /** CIMMethod findParameter - Finds the parameter whose name is given     /** CIMMethod findParameter - Finds the parameter whose name is given
         by the name parameter.         by the name parameter.
         @param name Name of parameter to be found.         @param name Name of parameter to be found.
         @return index of the parameter if found; otherwise Uint32(-1).          @return index of the parameter if found; otherwise PEG_NOT_FOUND.
     */     */
     Uint32 findParameter(const String& name)     Uint32 findParameter(const String& name)
     {     {
Line 310 
Line 342 
     }     }
  
     /** method print - prints this method (in CIM encoded form). */     /** method print - prints this method (in CIM encoded form). */
     void print(std::ostream &o=std::cout) const      void print(PEGASUS_STD(ostream) &o=PEGASUS_STD(cout)) const
     {     {
         _checkRep();         _checkRep();
         _rep->print(o);         _rep->print(o);
Line 333 
Line 365 
     {     {
     }     }
  
     explicit CIMMethod(const CIMConstMethod& x);      PEGASUS_EXPLICIT CIMMethod(const CIMConstMethod& x);
  
     void _checkRep() const     void _checkRep() const
     {     {
         if (!_rep)         if (!_rep)
             throw UnitializedHandle();              ThrowUnitializedHandle();
     }     }
  
     CIMMethodRep* _rep;     CIMMethodRep* _rep;
Line 469 
Line 501 
         _rep->toXml(out);         _rep->toXml(out);
     }     }
  
     void print(std::ostream &o=std::cout) const      void print(PEGASUS_STD(ostream) &o=PEGASUS_STD(cout)) const
     {     {
         _checkRep();         _checkRep();
         _rep->print(o);         _rep->print(o);
Line 492 
Line 524 
     void _checkRep() const     void _checkRep() const
     {     {
         if (!_rep)         if (!_rep)
             throw UnitializedHandle();              ThrowUnitializedHandle();
     }     }
  
     CIMMethodRep* _rep;     CIMMethodRep* _rep;
Line 501 
Line 533 
     friend class CIMMethodRep;     friend class CIMMethodRep;
 }; };
  
   #define PEGASUS_ARRAY_T CIMMethod
   # include "ArrayInter.h"
   #undef PEGASUS_ARRAY_T
   
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END
  
 #endif /* Pegasus_Method_h */ #endif /* Pegasus_Method_h */


Legend:
Removed from v.1.7  
changed lines
  Added in v.1.13

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2