2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-11-17 01:55:09 +00:00
qpdf/libqpdf/Pl_Concatenate.cc

34 lines
638 B
C++
Raw Normal View History

2012-06-27 05:00:18 +00:00
#include <qpdf/Pl_Concatenate.hh>
#include <stdexcept>
2012-06-27 05:00:18 +00:00
Pl_Concatenate::Pl_Concatenate(char const* identifier, Pipeline* next) :
Pipeline(identifier, next)
{
if (!next) {
throw std::logic_error("Attempt to create Pl_Concatenate with nullptr as next");
}
2012-06-27 05:00:18 +00:00
}
Pl_Concatenate::~Pl_Concatenate() // NOLINT (modernize-use-equals-default)
2012-06-27 05:00:18 +00:00
{
// Must be explicit and not inline -- see QPDF_DLL_CLASS in README-maintainer
2012-06-27 05:00:18 +00:00
}
void
Pl_Concatenate::write(unsigned char const* data, size_t len)
2012-06-27 05:00:18 +00:00
{
next()->write(data, len);
2012-06-27 05:00:18 +00:00
}
void
Pl_Concatenate::finish()
{
}
void
Pl_Concatenate::manualFinish()
{
next()->finish();
2012-06-27 05:00:18 +00:00
}