aboutsummaryrefslogtreecommitdiffstats
path: root/include/qpdf/QPDFTokenizer.hh
diff options
context:
space:
mode:
Diffstat (limited to 'include/qpdf/QPDFTokenizer.hh')
-rw-r--r--include/qpdf/QPDFTokenizer.hh9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/qpdf/QPDFTokenizer.hh b/include/qpdf/QPDFTokenizer.hh
index 122c193f..8a1bd216 100644
--- a/include/qpdf/QPDFTokenizer.hh
+++ b/include/qpdf/QPDFTokenizer.hh
@@ -10,6 +10,8 @@
#include <qpdf/DLL.h>
+#include <qpdf/InputSource.hh>
+#include <qpdf/PointerHolder.hh>
#include <string>
#include <stdio.h>
@@ -122,6 +124,13 @@ class QPDFTokenizer
QPDF_DLL
bool betweenTokens();
+ // Read a token from an input source. Context describes the
+ // context in which the token is being read and is used in the
+ // exception thrown if there is an error.
+ QPDF_DLL
+ Token readToken(PointerHolder<InputSource> input,
+ std::string const& context);
+
private:
void reset();