2008-04-29 12:55:25 +00:00
|
|
|
#include <qpdf/Pipeline.hh>
|
2009-09-26 18:36:04 +00:00
|
|
|
#include <stdexcept>
|
2008-04-29 12:55:25 +00:00
|
|
|
|
2009-08-06 19:00:25 +00:00
|
|
|
DLL_EXPORT
|
2008-04-29 12:55:25 +00:00
|
|
|
Pipeline::Pipeline(char const* identifier, Pipeline* next) :
|
|
|
|
identifier(identifier),
|
|
|
|
next(next)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2009-08-06 19:00:25 +00:00
|
|
|
DLL_EXPORT
|
2008-04-29 12:55:25 +00:00
|
|
|
Pipeline::~Pipeline()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
Pipeline*
|
|
|
|
Pipeline::getNext(bool allow_null)
|
|
|
|
{
|
|
|
|
if ((next == 0) && (! allow_null))
|
|
|
|
{
|
2009-09-26 18:36:04 +00:00
|
|
|
throw std::logic_error(
|
2008-04-29 12:55:25 +00:00
|
|
|
this->identifier +
|
|
|
|
": Pipeline::getNext() called on pipeline with no next");
|
|
|
|
}
|
|
|
|
return this->next;
|
|
|
|
}
|