(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.17 and 1.18

version 1.17, 2001/07/10 22:31:09 version 1.18, 2001/12/13 14:53:50
Line 94 
Line 94 
         Dec(_rep);         Dec(_rep);
     }     }
  
     /** CIMMethod getName - Gets the name of the method      /** getName - Gets the name of the method
         @return String with the name of the method         @return String with the name of the method
     */     */
     const String& getName() const     const String& getName() const
Line 103 
Line 103 
         return _rep->getName();         return _rep->getName();
     }     }
  
     /** CIMMethod setName - Set the method name      /** setName - Set the method name
         @param name         @param name
         @exception IllegalName if name argument not legal CIM identifier.         @exception IllegalName if name argument not legal CIM identifier.
     */     */
Line 113 
Line 113 
         _rep->setName(name);         _rep->setName(name);
     }     }
  
     /** CIMMethod getType - gets the method type      /** getType - gets the method type
         @return The CIM method type for this method.         @return The CIM method type for this method.
     */     */
     CIMType getType() const     CIMType getType() const
Line 122 
Line 122 
         return _rep->getType();         return _rep->getType();
     }     }
  
     /** CIMMethod setType - Sets the method type to the specified CIM method      /** setType - Sets the method type to the specified CIM method
         type as defined in CIMType /Ref{TYPE}         type as defined in CIMType /Ref{TYPE}
     */     */
     void setType(CIMType type)     void setType(CIMType type)
Line 131 
Line 131 
         _rep->setType(type);         _rep->setType(type);
     }     }
  
     /** CIMMethod getClassOrigin - Returns the class in which this method      /** getClassOrigin - Returns the class in which this method
         was defined.         was defined.
         @return ATTN:         @return ATTN:
     */     */
Line 141 
Line 141 
         return _rep->getClassOrigin();         return _rep->getClassOrigin();
     }     }
  
     /** CIMMethod setClassOrigin - ATTN: */      /** setClassOrigin - ATTN: */
     void setClassOrigin(const String& classOrigin)     void setClassOrigin(const String& classOrigin)
     {     {
         _checkRep();         _checkRep();
         _rep->setClassOrigin(classOrigin);         _rep->setClassOrigin(classOrigin);
     }     }
  
     /** method getPropagated - ATTN: */      /** getPropagated - Tests the propogated qualifier
           @return - returns True if method is propogated
           */
     Boolean getPropagated() const     Boolean getPropagated() const
     {     {
         _checkRep();         _checkRep();
         return _rep->getPropagated();         return _rep->getPropagated();
     }     }
  
     /** method setPropagated - ATTN: */      /** setPropagated - Sets the Propagaged Qualifier */
     void setPropagated(Boolean propagated)     void setPropagated(Boolean propagated)
     {     {
         _checkRep();         _checkRep();
         _rep->setPropagated(propagated);         _rep->setPropagated(propagated);
     }     }
  
     /** CIMMethod addQualifier - Adds a Qualifier to the method object.      /** addQualifier - Adds a Qualifier to the method object.
         @param CIMQualifier to be added         @param CIMQualifier to be added
         @return Throws AlreadyExists excetpion if the qualifier already exists         @return Throws AlreadyExists excetpion if the qualifier already exists
         in the method         in the method
Line 175 
Line 177 
         return *this;         return *this;
     }     }
  
     /** CIMMethod findQualifier - returns the position of the qualifier with      /** 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 PEG_NOT_FOUND.         @return index of the parameter if found; otherwise PEG_NOT_FOUND.
Line 210 
Line 212 
     }     }
  
  
     /** CIMMethod getQualifier - Gets the CIMQualifier defined by the index      /** 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.
         @return CIMQualifier object or exception         @return CIMQualifier object or exception
Line 243 
Line 245 
     }     }
  
  
     /** CIMMethod getQualifierCount - Returns the number of Qualifiers attached      /** getQualifierCount - Returns the number of Qualifiers attached
         to this method.          to this CIMmethod object.
         @return integer representing number of Qualifiers.         @return integer representing number of Qualifiers.
     */     */
     Uint32 getQualifierCount() const     Uint32 getQualifierCount() const
Line 253 
Line 255 
         return _rep->getQualifierCount();         return _rep->getQualifierCount();
     }     }
  
     /** CIMMethod addParameter - Adds the parameter defined by the input      /** addParameter - Adds the parameter defined by the input
         to the CIMMethod         to the CIMMethod
     */     */
     CIMMethod& addParameter(const CIMParameter& x)     CIMMethod& addParameter(const CIMParameter& x)
Line 263 
Line 265 
         return *this;         return *this;
     }     }
  
     /** CIMMethod findParameter - Finds the parameter whose name is given      /** 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 PEG_NOT_FOUND.         @return index of the parameter if found; otherwise PEG_NOT_FOUND.
Line 280 
Line 282 
         return _rep->findParameter(name);         return _rep->findParameter(name);
     }     }
  
     /** CIMMethod getParameter - ATTN: */      /** getParameter - ATTN: */
     CIMParameter getParameter(Uint32 pos)     CIMParameter getParameter(Uint32 pos)
     {     {
         _checkRep();         _checkRep();
         return _rep->getParameter(pos);         return _rep->getParameter(pos);
     }     }
  
     /** CIMMethod getParameter - Gets the parameter defined by the index      /** getParameter - Gets the parameter defined by the index
         input as a parameter.         input as a parameter.
         @param index for the parameter to be returned.         @param index for the parameter to be returned.
         @return CIMParameter requested.         @return CIMParameter requested.
Line 300 
Line 302 
         return _rep->getParameter(pos);         return _rep->getParameter(pos);
     }     }
  
     /** CIMMethod getParameterCount - Gets the count of the numbeer of      /** getParameterCount - Gets the count of the numbeer of
         Parameters attached to the CIMMethod.         Parameters attached to the CIMMethod.
         @retrun - count of the number of parameters attached to the CIMMethod.         @retrun - count of the number of parameters attached to the CIMMethod.
     */     */
Line 310 
Line 312 
         return _rep->getParameterCount();         return _rep->getParameterCount();
     }     }
  
     /** method resolve - ATTN: */      /** resolve - resolves and completes the CIMMethod */
     void resolve(     void resolve(
         DeclContext* declContext,         DeclContext* declContext,
         const String& nameSpace,         const String& nameSpace,
Line 320 
Line 322 
         _rep->resolve(declContext, nameSpace, method);         _rep->resolve(declContext, nameSpace, method);
     }     }
  
     /** CIMMethod resolve */      /** resolve - Resolves and completes the CIMMethod */
     void resolve(     void resolve(
         DeclContext* declContext,         DeclContext* declContext,
         const String& nameSpace)         const String& nameSpace)
Line 335 
Line 337 
         return _rep != 0;         return _rep != 0;
     }     }
  
     /** method toXML - placing XML encoding of this object into out arguemnt. */      /** toXML - puts XML encoding of this CIMMethod object into out
           arguemnt.
       */
     void toXml(Array<Sint8>& out) const     void toXml(Array<Sint8>& out) const
     {     {
         _checkRep();         _checkRep();
         _rep->toXml(out);         _rep->toXml(out);
     }     }
  
     /** method print - prints this method (in CIM encoded form). */      /** print - formats and prints this CIMmethod (in CIM XML encoded form).
       */
     void print(PEGASUS_STD(ostream) &o=PEGASUS_STD(cout)) const     void print(PEGASUS_STD(ostream) &o=PEGASUS_STD(cout)) const
     {     {
         _checkRep();         _checkRep();
         _rep->print(o);         _rep->print(o);
     }     }
  
     /** CIMMethod identical - Returns true if this method is identical to the      /** toMof - puts MOF encoding of this object into out arguemnt.
       */
       void toMof(Array<Sint8>& out) const
       {
           _checkRep();
           _rep->toMof(out);
       }
   
       /** identical - Returns true if this method is identical to the
         one given by the argument x.         one given by the argument x.
     */     */
     Boolean identical(const CIMConstMethod& x) const;     Boolean identical(const CIMConstMethod& x) const;


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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2