summaryrefslogtreecommitdiff
path: root/gentoobrowse-api/domain/unpackPqTextArray.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2016-06-27 22:30:03 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2016-06-27 22:30:03 +0100
commita2d1e5037589be5c166c05ba7f5097c947159586 (patch)
tree954602aaffc725ccdba93aecd3bc2a19e61829eb /gentoobrowse-api/domain/unpackPqTextArray.h
parentInclude headers (diff)
downloadgentoobrowse-api-a2d1e5037589be5c166c05ba7f5097c947159586.tar.bz2
gentoobrowse-api-a2d1e5037589be5c166c05ba7f5097c947159586.tar.xz
gentoobrowse-api-a2d1e5037589be5c166c05ba7f5097c947159586.zip
Move model support code in domain libgentoobrowse-api-0.4.5
Diffstat (limited to 'gentoobrowse-api/domain/unpackPqTextArray.h')
-rw-r--r--gentoobrowse-api/domain/unpackPqTextArray.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/gentoobrowse-api/domain/unpackPqTextArray.h b/gentoobrowse-api/domain/unpackPqTextArray.h
new file mode 100644
index 0000000..246be71
--- /dev/null
+++ b/gentoobrowse-api/domain/unpackPqTextArray.h
@@ -0,0 +1,27 @@
+#ifndef JSONFLEXLEXER_H
+#define JSONFLEXLEXER_H
+
+#include <portage-models.h>
+#ifndef yyFlexLexer
+#define yyFlexLexer pqBaseFlexLexer
+#include <FlexLexer.h>
+#endif
+
+namespace Portage {
+ namespace Utils {
+ class UnpackPqTextArray : public yyFlexLexer {
+ public:
+ UnpackPqTextArray(std::istream &, ::Gentoo::StringList & sl);
+
+ int yylex() override;
+ void LexerError(const char * msg) override;
+
+ private:
+ ::Gentoo::StringList & list;
+ };
+ }
+}
+
+#endif
+
+