#include <Y2StdioFunction.h>

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 |
| YCPValue * | m_parameters |
| Y2ProgramComponent * | m_sender |
| Y2StdioFunction::Y2StdioFunction | ( | string | ns, | |
| string | name, | |||
| constFunctionTypePtr | type, | |||
| Y2ProgramComponent * | sender | |||
| ) |
References m_parameters.
| Y2StdioFunction::~Y2StdioFunction | ( | ) | [virtual] |
References m_parameters.
| bool Y2StdioFunction::appendParameter | ( | const YCPValue & | arg | ) | [virtual] |
Appends a parameter to the call.
Implements Y2Function.
References YCPElement::isNull(), m_name, m_namespace, m_parameters, m_type, y2debug, and ycp2error.
| bool Y2StdioFunction::attachParameter | ( | const YCPValue & | arg, | |
| const int | position | |||
| ) | [virtual] |
Attaches a parameter to a given position to the call.
Implements Y2Function.
References m_name, m_namespace, m_parameters, m_type, and y2error.
| YCPValue Y2StdioFunction::evaluateCall | ( | ) | [virtual] |
Executes the call
Implements Y2Function.
References YCPElement::isNull(), m_name, m_namespace, m_parameters, m_sender, m_type, y2debug, and y2milestone.
| bool Y2StdioFunction::finishParameters | ( | ) | [virtual] |
Signal that we're done adding parameters.
Implements Y2Function.
References m_name, m_namespace, m_parameters, m_type, and y2error.
| 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, and m_type.
| 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)
Implements Y2Function.
References Type::Any, and y2internal.
string Y2StdioFunction::m_name [private] |
Referenced by appendParameter(), attachParameter(), evaluateCall(), finishParameters(), and name().
string Y2StdioFunction::m_namespace [private] |
Referenced by appendParameter(), attachParameter(), evaluateCall(), and finishParameters().
YCPValue* Y2StdioFunction::m_parameters [private] |
Referenced by appendParameter(), attachParameter(), evaluateCall(), finishParameters(), reset(), Y2StdioFunction(), and ~Y2StdioFunction().
Y2ProgramComponent* Y2StdioFunction::m_sender [private] |
Referenced by evaluateCall().
constFunctionTypePtr Y2StdioFunction::m_type [private] |
Referenced by appendParameter(), attachParameter(), evaluateCall(), finishParameters(), and reset().
1.5.9