mirror of
https://github.com/qpdf/qpdf.git
synced 2024-11-16 17:45:09 +00:00
27 lines
495 B
C++
27 lines
495 B
C++
#include <qpdf/Pipeline.hh>
|
|
|
|
#include <stdexcept>
|
|
|
|
Pipeline::Pipeline(char const* identifier, Pipeline* next) :
|
|
identifier(identifier),
|
|
next(next)
|
|
{
|
|
}
|
|
|
|
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;
|
|
}
|