Generic Function. More...
#include <rprgfunc.h>
Collaboration diagram for RPrgFunc:
Public Member Functions | |
int | Compare (const RPrgFunc &f) const |
int | Compare (const RString &f) const |
RString | GetDescription (void) const |
RString | GetName (void) const |
RPrgFunc (const RString &name, const RString desc=RString::Null) | |
virtual void | Run (RInterpreter *prg, RPrgOutput *o, RPrgVarInst *inst, RContainer< RPrgVar, true, false > &args)=0 |
virtual | ~RPrgFunc (void) |
Protected Attributes | |
RString | Description |
RString | Name |
Detailed Description
Generic Function.
The RPrgFunc provides a class for a generic function.
Constructor & Destructor Documentation
RPrgFunc | ( | const RString & | name, |
const RString | desc = RString::Null |
||
) |
Construct the function.
- Parameters
-
name Name. desc Description.
|
virtual |
Destruct the function.
Member Function Documentation
int Compare | ( | const RPrgFunc & | f | ) | const |
This methods compares two functions using their names and works like the "strcpy" function of the ANSI C/C++ library.
- See also
- R::RContainer.
- Parameters
-
f Pointer to a function.
- Returns
- int
int Compare | ( | const RString & | f | ) | const |
This methods compares the name of a function with a string and works like the "strcpy" function of the ANSI C/C++ library.
- See also
- R::RContainer.
- Parameters
-
f String representing the name of the function.
- Returns
- int
RString GetName | ( | void | ) | const |
Get the name of the function.
RString GetDescription | ( | void | ) | const |
Get the description of the function.
|
pure virtual |
Execute the function.
- Parameters
-
prg Program. o Output. inst Instance of the class. args Parameters of the function.
Member Data Documentation
|
protected |
Name of the function.
|
protected |
Description of the function.