2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-06-05 20:00:53 +00:00
qpdf/libqpdf/Pipeline.cc

28 lines
417 B
C++
Raw Normal View History

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