2012-06-27 05:00:18 +00:00
|
|
|
#include <qpdf/Pl_Concatenate.hh>
|
|
|
|
|
2024-08-07 16:20:19 +00:00
|
|
|
#include <stdexcept>
|
|
|
|
|
2012-06-27 05:00:18 +00:00
|
|
|
Pl_Concatenate::Pl_Concatenate(char const* identifier, Pipeline* next) :
|
|
|
|
Pipeline(identifier, next)
|
|
|
|
{
|
2024-08-07 16:20:19 +00:00
|
|
|
if (!next) {
|
|
|
|
throw std::logic_error("Attempt to create Pl_Concatenate with nullptr as next");
|
|
|
|
}
|
2012-06-27 05:00:18 +00:00
|
|
|
}
|
|
|
|
|
2023-06-01 13:47:36 +00:00
|
|
|
Pl_Concatenate::~Pl_Concatenate() // NOLINT (modernize-use-equals-default)
|
2012-06-27 05:00:18 +00:00
|
|
|
{
|
2022-04-15 23:44:07 +00:00
|
|
|
// Must be explicit and not inline -- see QPDF_DLL_CLASS in README-maintainer
|
2012-06-27 05:00:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2022-05-03 21:43:07 +00:00
|
|
|
Pl_Concatenate::write(unsigned char const* data, size_t len)
|
2012-06-27 05:00:18 +00:00
|
|
|
{
|
2024-08-07 16:20:19 +00:00
|
|
|
next()->write(data, len);
|
2012-06-27 05:00:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
Pl_Concatenate::finish()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
Pl_Concatenate::manualFinish()
|
|
|
|
{
|
2024-08-07 16:20:19 +00:00
|
|
|
next()->finish();
|
2012-06-27 05:00:18 +00:00
|
|
|
}
|