aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/Pipeline.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2008-04-29 14:55:25 +0200
committerJay Berkenbilt <ejb@ql.org>2008-04-29 14:55:25 +0200
commit9a0b88bf7777c153dc46ace22db74ef24d51583a (patch)
treef567ac1cf2bf5071a611eb49323a935b6ac938ff /libqpdf/Pipeline.cc
downloadqpdf-9a0b88bf7777c153dc46ace22db74ef24d51583a.tar.zst
update release date to actual daterelease-qpdf-2.0
git-svn-id: svn+q:///qpdf/trunk@599 71b93d88-0707-0410-a8cf-f5a4172ac649
Diffstat (limited to 'libqpdf/Pipeline.cc')
-rw-r--r--libqpdf/Pipeline.cc25
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;
+}