RPCInterface
Fork of RPCInterface by
RPCFunction Class Reference
Class to call custom functions over RPC. More...
#include <RPCFunction.h>
Public Member Functions | |
RPCFunction (void(*f)(char *, char *), const char *=NULL) | |
Constructor. | |
char * | run (char *str) |
run | |
char * | read () |
Reads the value of the output string. |
Detailed Description
Class to call custom functions over RPC.
Definition at line 46 of file RPCFunction.h.
Constructor & Destructor Documentation
RPCFunction | ( | void(*)(char *, char *) | f, |
const char * | name = NULL |
||
) |
Constructor.
- Parameters:
-
f Pointer to the function to call. the function must be of the form void foo(char * input, char * output) name The name of this object
Definition at line 87 of file RPCFunction.cpp.
Member Function Documentation
char * read | ( | ) |
Reads the value of the output string.
- Returns:
- the string outputted from the last time the function was called
Definition at line 100 of file RPCFunction.cpp.
char * run | ( | char * | str ) |
run
Calls the attached function passing the string in but doesn't return the result.
- Parameters:
-
str The string to be passed into the attached function. This string can consist of any ASCII characters apart from escape codes. The usual limtations on argument content for RPC strings has been removed
- Returns:
- A string output from the function
Definition at line 93 of file RPCFunction.cpp.
Generated on Wed Jul 13 2022 06:53:44 by 1.7.2