diff options
Diffstat (limited to 'include/qpdf/Pipeline.hh')
-rw-r--r-- | include/qpdf/Pipeline.hh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/qpdf/Pipeline.hh b/include/qpdf/Pipeline.hh index d925d9c6..358bcb03 100644 --- a/include/qpdf/Pipeline.hh +++ b/include/qpdf/Pipeline.hh @@ -30,6 +30,8 @@ #ifndef __PIPELINE_HH__ #define __PIPELINE_HH__ +#include <qpdf/DLL.hh> + #include <qpdf/QEXC.hh> class Pipeline @@ -38,24 +40,30 @@ class Pipeline class Exception: public QEXC::General { public: + DLL_EXPORT Exception(std::string const& message) : QEXC::General(message) { } + DLL_EXPORT virtual ~Exception() throw() { } }; + DLL_EXPORT Pipeline(char const* identifier, Pipeline* next); + DLL_EXPORT virtual ~Pipeline(); // Subclasses should implement write and finish to do their jobs // and then, if they are not end-of-line pipelines, call // getNext()->write or getNext()->finish. + DLL_EXPORT virtual void write(unsigned char* data, int len) = 0; + DLL_EXPORT virtual void finish() = 0; protected: |