From 9a0b88bf7777c153dc46ace22db74ef24d51583a Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Tue, 29 Apr 2008 12:55:25 +0000 Subject: update release date to actual date git-svn-id: svn+q:///qpdf/trunk@599 71b93d88-0707-0410-a8cf-f5a4172ac649 --- libqpdf/Pipeline.cc | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 libqpdf/Pipeline.cc (limited to 'libqpdf/Pipeline.cc') 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 + +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; +} -- cgit v1.2.3-70-g09d2