Method or Function Runner. More...

#include <rprginstmethod.h>

Inheritance diagram for RPrgInstMethod:
[legend]
Collaboration diagram for RPrgInstMethod:
[legend]

Public Member Functions

void AddParam (RPrgVar *var)
 
 RPrgInstMethod (RInterpreter *prg, const RString &method, RContainer< RPrgVar, false, false > &params)
 
 RPrgInstMethod (RInterpreter *prg, const RString &name, const RString &method, RContainer< RPrgVar, false, false > &params)
 
virtual void Run (RInterpreter *prg, RPrgOutput *o)
 
virtual ~RPrgInstMethod (void)
 
- Public Member Functions inherited from RPrgInst
int Compare (const RPrgInst &t) const
 
int Compare (const RString &t) const
 
size_t GetLine (void) const
 
 RPrgInst (size_t line)
 
virtual ~RPrgInst (void)
 

Protected Attributes

RString Inst
 
RString Method
 
RContainer< RPrgVar, true, false > Params
 

Detailed Description

Method or Function Runner.

The RPrgInstMethod provides a class to call a method or a function.

Constructor & Destructor Documentation

RPrgInstMethod ( RInterpreter prg,
const RString method,
RContainer< RPrgVar, false, false > &  params 
)

Constructor of a class method.

Parameters
prgProgram.
methodName of the method.
paramsParameters.
RPrgInstMethod ( RInterpreter prg,
const RString name,
const RString method,
RContainer< RPrgVar, false, false > &  params 
)

Constructor of a class method.

Parameters
prgProgram.
nameName of the instance.
methodName of the method.
paramsParameters.
virtual ~RPrgInstMethod ( void  )
virtual

Destruct the class method.

Member Function Documentation

void AddParam ( RPrgVar var)

Add a parameter to the method.

Parameters
varParameter to add.
virtual void Run ( RInterpreter prg,
RPrgOutput o 
)
virtual

Run the method.

Parameters
prgProgram.
oOutput.

Reimplemented from RPrgInst.

Member Data Documentation

RString Inst
protected

Name of the instance.

RString Method
protected

Name of the method.

RContainer<RPrgVar,true,false> Params
protected

Parameters of the method.