dlvhex
2.5.0
|
Converter class (input stream rewriter). More...
#include <include/dlvhex2/PluginInterface.h>
Public Member Functions | |
virtual | ~PluginConverter () |
virtual void | convert (std::istream &i, std::ostream &o)=0 |
Conversion function. |
Converter class (input stream rewriter).
A converter is a rewriter for the raw input stream. A converter must return a parseable HEX-program in its output stream. Note, that the definition of parseable depends on whether your plugin also replaces or extends the HEX input parser.
Other possibilities for modifying the way input is prepared for evaluation are:
Definition at line 1369 of file PluginInterface.h.
virtual PluginConverter::~PluginConverter | ( | ) | [inline, virtual] |
Definition at line 1372 of file PluginInterface.h.
virtual void PluginConverter::convert | ( | std::istream & | i, |
std::ostream & | o | ||
) | [pure virtual] |
Conversion function.
The input program is read from i
. The output must be passed on to the stream o
, either the original input stream or the result of a conversion.
i | Input stream (concatenation of all input files and stdin). |
o | Output stream which is expected to contain a HEX-program when this method returns. |