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
|
|
|
|
2019-06-22 01:32:47 +00:00
|
|
|
Pipeline::Members::Members(Pipeline* next) :
|
|
|
|
next(next)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
Pipeline::Members::~Members()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2008-04-29 12:55:25 +00:00
|
|
|
Pipeline::Pipeline(char const* identifier, Pipeline* next) :
|
|
|
|
identifier(identifier),
|
2019-06-22 01:32:47 +00:00
|
|
|
m(new Members(next))
|
2008-04-29 12:55:25 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
Pipeline::~Pipeline()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
Pipeline*
|
|
|
|
Pipeline::getNext(bool allow_null)
|
|
|
|
{
|
2019-06-22 01:32:47 +00:00
|
|
|
if ((this->m->next == 0) && (! allow_null))
|
2008-04-29 12:55:25 +00:00
|
|
|
{
|
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");
|
|
|
|
}
|
2019-06-22 01:32:47 +00:00
|
|
|
return this->m->next;
|
2008-04-29 12:55:25 +00:00
|
|
|
}
|
2019-08-28 02:10:11 +00:00
|
|
|
|
|
|
|
std::string
|
|
|
|
Pipeline::getIdentifier() const
|
|
|
|
{
|
|
|
|
return this->identifier;
|
|
|
|
}
|