#include <Y2StdioFunction.h>
Y2StdioFunction::Y2StdioFunction |
( |
string |
ns, |
|
|
string |
name, |
|
|
constFunctionTypePtr |
type, |
|
|
Y2ProgramComponent * |
sender |
|
) |
| |
Y2StdioFunction::~Y2StdioFunction |
( |
| ) |
|
|
virtual |
bool Y2StdioFunction::appendParameter |
( |
const YCPValue & |
arg | ) |
|
|
virtual |
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.
References m_parameters.
YCPValue Y2StdioFunction::evaluateCall |
( |
| ) |
|
|
virtual |
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 |
bool Y2StdioFunction::reset |
( |
| ) |
|
|
virtual |
Reset the currecn parameters, so the instance can be reused for the next call (appendParameter etc)
Implements Y2Function.
References m_parameters.
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.
References Type::Any, and y2internal.
string Y2StdioFunction::m_name |
|
private |
string Y2StdioFunction::m_namespace |
|
private |
vector<YCPValue> Y2StdioFunction::m_parameters |
|
private |
constFunctionTypePtr Y2StdioFunction::m_type |
|
private |
The documentation for this class was generated from the following files: