Y2StdioFunction Class Reference

#include <Y2StdioFunction.h>

Inheritance diagram for Y2StdioFunction:

Y2Function List of all members.

Public Member Functions

 Y2StdioFunction (string ns, string name, constFunctionTypePtr type, Y2ProgramComponent *sender)
virtual ~Y2StdioFunction ()
virtual bool attachParameter (const YCPValue &arg, const int position)
virtual constTypePtr wantedParameterType () const
virtual bool appendParameter (const YCPValue &arg)
virtual bool finishParameters ()
virtual YCPValue evaluateCall ()
virtual bool reset ()
virtual string name () const

Private Attributes

string m_namespace
string m_name
constFunctionTypePtr m_type
YCPValuem_parameters
Y2ProgramComponentm_sender

Constructor & Destructor Documentation

Y2StdioFunction::Y2StdioFunction string  ns,
string  name,
constFunctionTypePtr  type,
Y2ProgramComponent sender
 

Y2StdioFunction::~Y2StdioFunction  )  [virtual]
 


Member Function Documentation

bool Y2StdioFunction::appendParameter const YCPValue arg  )  [virtual]
 

Appends a parameter to the call.

Returns:
false if there was a type mismatch

Implements Y2Function.

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

Attaches a parameter to a given position to the call.

Returns:
false if there was a type mismatch

Implements Y2Function.

YCPValue Y2StdioFunction::evaluateCall  )  [virtual]
 

Executes the call

Implements Y2Function.

bool Y2StdioFunction::finishParameters  )  [virtual]
 

Signal that we're done adding parameters.

Returns:
false if there was a parameter missing

Implements Y2Function.

string Y2StdioFunction::name  )  const [virtual]
 

Implements Y2Function.

bool Y2StdioFunction::reset  )  [virtual]
 

Reset the currecn parameters, so the instance can be reused for the next call (appendParameter etc)

Implements Y2Function.

constTypePtr Y2StdioFunction::wantedParameterType  )  const [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

Implements Y2Function.


Member Data Documentation

string Y2StdioFunction::m_name [private]
 

string Y2StdioFunction::m_namespace [private]
 

YCPValue* Y2StdioFunction::m_parameters [private]
 

Y2ProgramComponent* Y2StdioFunction::m_sender [private]
 

constFunctionTypePtr Y2StdioFunction::m_type [private]
 


The documentation for this class was generated from the following files:
Generated on Fri Jun 16 18:07:46 2006 for yast2-core by  doxygen 1.4.6