#include <Y2SystemFunction.h>
Public Member Functions | |
Y2SystemFunction (Y2Function *local_call, constFunctionTypePtr type) | |
virtual | ~Y2SystemFunction () |
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 () |
void | useRemote (Y2Function *remote_call) |
void | useLocal () |
string | name () const |
constFunctionTypePtr | type () const |
Private Attributes | |
Y2Function * | m_local |
Y2Function * | m_remote |
bool | m_use_remote |
constFunctionTypePtr | m_type |
Y2SystemFunction::Y2SystemFunction | ( | Y2Function * | local_call, | |
constFunctionTypePtr | type | |||
) |
References m_local, Y2Function::name(), and y2debug.
Y2SystemFunction::~Y2SystemFunction | ( | ) | [virtual] |
bool Y2SystemFunction::appendParameter | ( | const YCPValue & | arg | ) | [virtual] |
Appends a parameter to the call.
Implements Y2Function.
References Y2Function::appendParameter(), m_local, m_remote, m_use_remote, and y2debug.
bool Y2SystemFunction::attachParameter | ( | const YCPValue & | arg, | |
const int | position | |||
) | [virtual] |
Attaches a parameter to a given position to the call.
Implements Y2Function.
References Y2Function::attachParameter(), m_local, m_remote, m_use_remote, and y2debug.
YCPValue Y2SystemFunction::evaluateCall | ( | ) | [virtual] |
Executes the call
Implements Y2Function.
References Y2Function::evaluateCall(), m_local, m_remote, m_use_remote, Y2Function::name(), and y2debug.
bool Y2SystemFunction::finishParameters | ( | ) | [virtual] |
Signal that we're done adding parameters.
Implements Y2Function.
References Y2Function::finishParameters(), m_local, m_remote, and m_use_remote.
string Y2SystemFunction::name | ( | ) | const [virtual] |
bool Y2SystemFunction::reset | ( | ) | [virtual] |
Reset the currecn parameters, so the instance can be reused for the next call (appendParameter etc)
Implements Y2Function.
References m_local, m_remote, m_use_remote, and Y2Function::reset().
constFunctionTypePtr Y2SystemFunction::type | ( | ) | const |
References m_type.
void Y2SystemFunction::useLocal | ( | ) |
References m_remote, and m_use_remote.
void Y2SystemFunction::useRemote | ( | Y2Function * | remote_call | ) |
References m_local, m_remote, m_use_remote, Y2Function::name(), and y2milestone.
constTypePtr Y2SystemFunction::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)
Implements Y2Function.
References m_local, m_remote, m_use_remote, and Y2Function::wantedParameterType().
Y2Function* Y2SystemFunction::m_local [private] |
Referenced by appendParameter(), attachParameter(), evaluateCall(), finishParameters(), name(), reset(), useRemote(), wantedParameterType(), and Y2SystemFunction().
Y2Function* Y2SystemFunction::m_remote [private] |
Referenced by appendParameter(), attachParameter(), evaluateCall(), finishParameters(), reset(), useLocal(), useRemote(), and wantedParameterType().
constFunctionTypePtr Y2SystemFunction::m_type [private] |
Referenced by type().
bool Y2SystemFunction::m_use_remote [private] |
Referenced by appendParameter(), attachParameter(), evaluateCall(), finishParameters(), reset(), useLocal(), useRemote(), and wantedParameterType().