Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Examples

Y2Function Class Reference

#include <Y2Function.h>

Inheritance diagram for Y2Function:

YEFunction List of all members.

Public Member Functions

virtual ~Y2Function ()
virtual bool attachParameter (const YCPValue &arg, const int position)=0
virtual constTypePtr wantedParameterType () const=0
virtual bool appendParameter (const YCPValue &arg)=0
virtual bool finishParameters ()=0
virtual YCPValue evaluateCall ()=0

Detailed Description

A function call interface. Created by Y2Namespace::createFunctionCall ("funcname")


Constructor & Destructor Documentation

virtual Y2Function::~Y2Function  )  [inline, virtual]
 

Whithout this, can't delete YEFunction which is derived from YCode, Y2Function


Member Function Documentation

virtual bool Y2Function::appendParameter const YCPValue arg  )  [pure virtual]
 

Appends a parameter to the call.

Returns:
false if there was a type mismatch

Implemented in YEFunction.

virtual bool Y2Function::attachParameter const YCPValue arg,
const int  position
[pure virtual]
 

Attaches a parameter to a given position to the call.

Returns:
false if there was a type mismatch

Implemented in YEFunction.

virtual YCPValue Y2Function::evaluateCall  )  [pure virtual]
 

Executes the call

Implemented in YEFunction.

virtual bool Y2Function::finishParameters  )  [pure virtual]
 

Signal that we're done adding parameters.

Returns:
false if there was a parameter missing

Implemented in YEFunction.

virtual constTypePtr Y2Function::wantedParameterType  )  const [pure virtual]
 

What type is expected for the next appendParameter (val) ? (Used when calling from Perl, to be able to convert from the simple type system of Perl to the elaborate type system of YCP)

Returns:
Type::Any if number of parameters exceeded

Implemented in YEFunction.


The documentation for this class was generated from the following file:
Generated on Fri Nov 9 18:15:24 2007 for yast2-core by doxygen 1.3.6