diff options
Diffstat (limited to 'libqpdf/Pipeline.cc')
-rw-r--r-- | libqpdf/Pipeline.cc | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/libqpdf/Pipeline.cc b/libqpdf/Pipeline.cc new file mode 100644 index 00000000..17c0c8b2 --- /dev/null +++ b/libqpdf/Pipeline.cc @@ -0,0 +1,25 @@ + + +#include <qpdf/Pipeline.hh> + +Pipeline::Pipeline(char const* identifier, Pipeline* next) : + identifier(identifier), + next(next) +{ +} + +Pipeline::~Pipeline() +{ +} + +Pipeline* +Pipeline::getNext(bool allow_null) +{ + if ((next == 0) && (! allow_null)) + { + throw Exception( + this->identifier + + ": Pipeline::getNext() called on pipeline with no next"); + } + return this->next; +} |