Y2SystemFunction Class Reference

#include <Y2SystemFunction.h>

Inheritance diagram for Y2SystemFunction:
Y2Function

List of all members.

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

Y2Functionm_local
Y2Functionm_remote
bool m_use_remote
constFunctionTypePtr m_type

Constructor & Destructor Documentation

Y2SystemFunction::Y2SystemFunction ( Y2Function local_call,
constFunctionTypePtr  type 
)

References m_local, Y2Function::name(), and y2debug.

Y2SystemFunction::~Y2SystemFunction (  )  [virtual]

Member Function Documentation

bool Y2SystemFunction::appendParameter ( const YCPValue arg  )  [virtual]

Appends a parameter to the call.

Returns:
false if there was a type mismatch

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.

Returns:
false if there was a type mismatch

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.

Returns:
false if there was a parameter missing

Implements Y2Function.

References Y2Function::finishParameters(), m_local, m_remote, and m_use_remote.

string Y2SystemFunction::name (  )  const [virtual]

Implements Y2Function.

References m_local, and Y2Function::name().

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  ) 
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)

Returns:
Type::Any if number of parameters exceeded

Implements Y2Function.

References m_local, m_remote, m_use_remote, and Y2Function::wantedParameterType().


Member Data Documentation

constFunctionTypePtr Y2SystemFunction::m_type [private]

Referenced by type().


The documentation for this class was generated from the following files:

Generated on a sunny day for yast2-core by doxygen 1.6.3