/src/qpdf/libqpdf/qpdf/SF_ASCIIHexDecode.hh
Line | Count | Source |
1 | | #include <qpdf/Pl_ASCIIHexDecoder.hh> |
2 | | #include <qpdf/QPDFStreamFilter.hh> |
3 | | #include <memory> |
4 | | |
5 | | #ifndef SF_ASCIIHEXDECODE_HH |
6 | | # define SF_ASCIIHEXDECODE_HH |
7 | | |
8 | | class SF_ASCIIHexDecode: public QPDFStreamFilter |
9 | | { |
10 | | public: |
11 | 0 | SF_ASCIIHexDecode() = default; |
12 | 0 | ~SF_ASCIIHexDecode() override = default; |
13 | | |
14 | | Pipeline* |
15 | | getDecodePipeline(Pipeline* next) override |
16 | 0 | { |
17 | 0 | this->pipeline = std::make_shared<Pl_ASCIIHexDecoder>("asciiHex decode", next); |
18 | 0 | return this->pipeline.get(); |
19 | 0 | } |
20 | | |
21 | | static std::shared_ptr<QPDFStreamFilter> |
22 | | factory() |
23 | 0 | { |
24 | 0 | return std::make_shared<SF_ASCIIHexDecode>(); |
25 | 0 | } |
26 | | |
27 | | private: |
28 | | std::shared_ptr<Pipeline> pipeline; |
29 | | }; |
30 | | |
31 | | #endif // SF_ASCIIHEXDECODE_HH |