2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-06-05 20:00:53 +00:00
qpdf/libqpdf/qpdf/SF_ASCIIHexDecode.hh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
706 B
C++
Raw Permalink Normal View History

#include <qpdf/Pl_ASCIIHexDecoder.hh>
#include <qpdf/QPDFStreamFilter.hh>
#include <memory>
#ifndef SF_ASCIIHEXDECODE_HH
# define SF_ASCIIHEXDECODE_HH
class SF_ASCIIHexDecode: public QPDFStreamFilter
{
public:
SF_ASCIIHexDecode() = default;
~SF_ASCIIHexDecode() override = default;
2023-05-20 12:56:33 +00:00
Pipeline*
getDecodePipeline(Pipeline* next) override
{
this->pipeline = std::make_shared<Pl_ASCIIHexDecoder>("asciiHex decode", next);
return this->pipeline.get();
}
static std::shared_ptr<QPDFStreamFilter>
factory()
{
return std::make_shared<SF_ASCIIHexDecode>();
}
private:
std::shared_ptr<Pipeline> pipeline;
};
#endif // SF_ASCIIHEXDECODE_HH