mirror of
https://github.com/qpdf/qpdf.git
synced 2024-11-16 09:37:08 +00:00
26 lines
395 B
C++
26 lines
395 B
C++
|
|
||
|
|
||
|
#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;
|
||
|
}
|