- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FilterReader.h
Go to the documentation of this file.
1 //---------------------------------------------------------------------------------------
2 // Copyright (c) 2001-2025 by Apryse Software Inc. All Rights Reserved.
3 // Consult legal.txt regarding legal and license information.
4 //---------------------------------------------------------------------------------------
5 #ifndef PDFTRON_H_CPPFiltersFilterReader
6 #define PDFTRON_H_CPPFiltersFilterReader
7
8 #include <C/Filters/TRN_FilterReader.h>
9 #include <Common/Common.h>
10 #include <Filters/Filter.h>
11
12 #include <vector>
13
14 namespace pdftron {
15 namespace Filters {
16
17
29 class FilterReader
30 {
31 public:
32
33 FilterReader ();
34 FilterReader (Filter& filter);
35 ~FilterReader ();
36
40 int Get();
41
46 int Peek();
47
53 std::vector<unsigned char> Read(size_t buf_size);
54
55 #ifndef SWIG
56 size_t Read(UChar* buf, size_t buf_size);
57 #endif
58
63 void AttachFilter(Filter& filter);
64
68 Filter GetAttachedFilter();
69
85 void Seek(ptrdiff_t offset, Filter::ReferencePos origin);
86
93 ptrdiff_t Tell ();
94
99 size_t Count ();
100
104 void Flush ();
105
109 void FlushAll ();
110
111 //private:
112 // @cond PRIVATE_DOC
113 #ifndef SWIGHIDDEN
114 TRN_FilterReader m_impl;
115 #endif
116 // @endcond
117 };
118
119
120 #include <Impl/FilterReader.inl>
121
122 }; // namespace Filters
123 }; // namespace pdftron
124
125
126 #endif // PDFTRON_H_CPPFiltersFilterReader
pdftron::Filters::FilterReader::Get
int Get()
pdftron::Filters::FilterReader::FilterReader
FilterReader()
pdftron::Filters::FilterReader::Count
size_t Count()
pdftron::Filters::FilterReader::Seek
void Seek(ptrdiff_t offset, Filter::ReferencePos origin)
pdftron::Filters::FilterReader::Peek
int Peek()
pdftron::Filters::FilterReader::~FilterReader
~FilterReader()
pdftron::UChar
TRN_UChar UChar
Definition: BasicTypes.h:12
pdftron::Filters::FilterReader::Read
std::vector< unsigned char > Read(size_t buf_size)
pdftron::Filters::FilterReader::Tell
ptrdiff_t Tell()
pdftron::Filters::Filter
Definition: Filter.h:45
pdftron::Filters::FilterReader::GetAttachedFilter
Filter GetAttachedFilter()
Common.h
pdftron::Filters::FilterReader::FlushAll
void FlushAll()
pdftron::Filters::FilterReader
Definition: FilterReader.h:29
pdftron::Filters::Filter::ReferencePos
ReferencePos
Definition: Filter.h:172
pdftron::Filters::FilterReader::Flush
void Flush()
pdftron::Filters::FilterReader::AttachFilter
void AttachFilter(Filter &filter)
Filter.h