FILE* handler functor base class to analyze FILE* input, handle errors and non-blocking FILE* reads.
More...
#include <input.h>
FILE* handler functor base class to analyze FILE* input, handle errors and non-blocking FILE* reads.
virtual reflex::Input::Handler::~Handler |
( |
| ) |
|
|
inlinevirtual |
virtual size_t reflex::Input::Handler::operator() |
( |
FILE * |
file, |
|
|
char * |
buf, |
|
|
size_t |
len |
|
) |
| |
|
pure virtual |
- Parameters
-
file | open file |
buf | pointer to buffer with data read from file, may be changed by handler |
len | length of the buffered data, should be returned by the functor, or shorter to ignore or zero to force EOF and stop reading |
The documentation for this struct was generated from the following file: