MPSolve 3.2.1
|
Abstract class that represent a generic input stream that can be used by MPSolve to read polynomial files and/or descriptions. More...
#include <abstract-input-stream.h>
Public Member Functions | |
virtual size_t | readline (char **buffer, size_t *length)=0 |
Return a new line of the stream or NULL if we are at the end. More... | |
virtual bool | eof ()=0 |
Check if we are at the end of the stream. More... | |
virtual int | getchar ()=0 |
Obtain a single character. More... | |
Abstract class that represent a generic input stream that can be used by MPSolve to read polynomial files and/or descriptions.
@seealso MemoryFileStream
, FileInputStream
|
pure virtual |
Check if we are at the end of the stream.
Implemented in mps::FileInputStream, and mps::MemoryFileStream.
|
pure virtual |
Obtain a single character.
Implemented in mps::FileInputStream, and mps::MemoryFileStream.
|
pure virtual |
Return a new line of the stream or NULL if we are at the end.
Implemented in mps::FileInputStream, and mps::MemoryFileStream.