2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-11-14 08:44:04 +00:00
qpdf/libqpdf/Pipeline.cc

31 lines
505 B
C++
Raw Normal View History

#include <qpdf/Pipeline.hh>
#include <stdexcept>
Pipeline::Pipeline(char const* identifier, Pipeline* next) :
identifier(identifier),
next(next)
{
}
Pipeline::~Pipeline()
{
}
Pipeline*
Pipeline::getNext(bool allow_null)
{
if ((this->next == 0) && (! allow_null))
{
throw std::logic_error(
this->identifier +
": Pipeline::getNext() called on pipeline with no next");
}
return this->next;
}
std::string
Pipeline::getIdentifier() const
{
return this->identifier;
}