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 
)

Y2SystemFunction::~Y2SystemFunction (  )  [virtual]


Member Function Documentation

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.

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.

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

Appends a parameter to the call.

Returns:
false if there was a type mismatch

Implements Y2Function.

bool Y2SystemFunction::finishParameters (  )  [virtual]

Signal that we're done adding parameters.

Returns:
false if there was a parameter missing

Implements Y2Function.

YCPValue Y2SystemFunction::evaluateCall (  )  [virtual]

Executes the call

Implements Y2Function.

bool Y2SystemFunction::reset (  )  [virtual]

Reset the currecn parameters, so the instance can be reused for the next call (appendParameter etc)

Implements Y2Function.

void Y2SystemFunction::useRemote ( Y2Function remote_call  ) 

void Y2SystemFunction::useLocal (  ) 

string Y2SystemFunction::name (  )  const [virtual]

Implements Y2Function.

constFunctionTypePtr Y2SystemFunction::type (  )  const


Member Data Documentation

Y2Function* Y2SystemFunction::m_local [private]

Y2Function* Y2SystemFunction::m_remote [private]

bool Y2SystemFunction::m_use_remote [private]

constFunctionTypePtr Y2SystemFunction::m_type [private]


The documentation for this class was generated from the following files:
Generated on Tue Nov 6 01:20:22 2007 for yast2-core by  doxygen 1.5.0