aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/Pipeline.cc
blob: d9f70b672f82635df18e9bbcab93dee219d99da1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27


#include <qpdf/Pipeline.hh>

DLL_EXPORT
Pipeline::Pipeline(char const* identifier, Pipeline* next) :
    identifier(identifier),
    next(next)
{
}

DLL_EXPORT
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;
}