|
yast2-core
|
#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 |
Public Member Functions inherited from Y2Function | |
| virtual | ~Y2Function () |
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.
|
virtual |
References m_parameters.
|
virtual |
Appends a parameter to the call.
Implements Y2Function.
References YCPElement::isNull(), m_name, m_namespace, m_parameters, m_type, y2debug, and ycp2error.
|
virtual |
Attaches a parameter to a given position to the call.
Implements Y2Function.
References m_name, m_namespace, m_parameters, m_type, and y2error.
|
virtual |
Executes the call
Implements Y2Function.
References YCPElement::isNull(), m_name, m_namespace, m_parameters, m_sender, m_type, Y2ProgramComponent::sendToExternal(), y2debug, and y2milestone.
|
virtual |
Signal that we're done adding parameters.
Implements Y2Function.
References m_name, m_namespace, m_parameters, m_type, and y2error.
|
virtual |
Implements Y2Function.
References m_name.
|
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.
|
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.
|
private |
Referenced by appendParameter(), attachParameter(), evaluateCall(), finishParameters(), and name().
|
private |
Referenced by appendParameter(), attachParameter(), evaluateCall(), and finishParameters().
|
private |
Referenced by appendParameter(), attachParameter(), evaluateCall(), finishParameters(), reset(), Y2StdioFunction(), and ~Y2StdioFunction().
|
private |
Referenced by evaluateCall().
|
private |
Referenced by appendParameter(), attachParameter(), evaluateCall(), finishParameters(), and reset().
1.8.2