blob: bd4fb0879d855251fe262fa455ba8a1f681a2ea8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#include <qpdf/Pipeline.hh>
#include <stdexcept>
Pipeline::Members::Members(Pipeline* next) :
next(next)
{
}
Pipeline::Members::~Members()
{
}
Pipeline::Pipeline(char const* identifier, Pipeline* next) :
identifier(identifier),
m(new Members(next))
{
}
Pipeline::~Pipeline()
{
}
Pipeline*
Pipeline::getNext(bool allow_null)
{
if ((this->m->next == 0) && (! allow_null))
{
throw std::logic_error(
this->identifier +
": Pipeline::getNext() called on pipeline with no next");
}
return this->m->next;
}
std::string
Pipeline::getIdentifier() const
{
return this->identifier;
}
|