#include <ExternalDataSource.h>
Inheritance diagram for ExternalDataSource:
Public Member Functions | |
ExternalDataSource (FILE *inputfile=0, FILE *outputfile=0) | |
virtual | ~ExternalDataSource () |
bool | send (const char *buffer, size_t length) |
bool | send (std::string s) |
size_t | receive (char *buffer, size_t length) |
std::string | receiveLine () |
std::string | receiveUpto (char c) |
void | setBlocking (bool mode) |
virtual int | close () |
FILE * | inputFile () const |
FILE * | outputFile () const |
Protected Attributes | |
FILE * | inputfile |
FILE * | outputfile |
Private Attributes | |
char * | linebuffer |
size_t | linebuffer_size |
|
Create a new instance.
|
|
Implicitly close the connection. |
|
Close the input and output streams. Reimplemented in ExternalProgram. |
|
Return the input stream. |
|
Return the output stream. |
|
Read some data from the input stream.
|
|
Read one line from the input stream. Returns the line read, including the terminator. |
|
Read characters into a string until character c is read. C is put at the end of the string. |
|
Send some data down the stream.
|
|
Send some data to the output stream.
|
|
Set the blocking mode of the input stream.
|
|
|
|
|
|
|
|
|