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-2024 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 
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 
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
void Seek(ptrdiff_t offset, Filter::ReferencePos origin)
TRN_UChar UChar
Definition: BasicTypes.h:12
std::vector< unsigned char > Read(size_t buf_size)
void AttachFilter(Filter &filter)