summaryrefslogtreecommitdiff
path: root/src/query_parser.hh
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@yahoo.com>2015-05-28 21:14:52 +0200
committerJoel Klinghed <the_jk@yahoo.com>2015-05-28 21:16:14 +0200
commit720295848ea0d909cb39c004cbeaf1055fa7cffc (patch)
tree3a4c0332f8145986ddfc1c83e89b9cf8a1491546 /src/query_parser.hh
parent978bb2523f2eef42eca8dbe35e0ad351a4953aa7 (diff)
Start of CGI interface
Diffstat (limited to 'src/query_parser.hh')
-rw-r--r--src/query_parser.hh23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/query_parser.hh b/src/query_parser.hh
new file mode 100644
index 0000000..4c12502
--- /dev/null
+++ b/src/query_parser.hh
@@ -0,0 +1,23 @@
+#ifndef QUERY_PARSER_HH
+#define QUERY_PARSER_HH
+
+#include <map>
+#include <string>
+
+namespace stuff {
+
+class QueryParser {
+public:
+ static bool parse(const std::string& in,
+ std::map<std::string, std::string>* out);
+
+private:
+ QueryParser() {}
+ ~QueryParser() {}
+ QueryParser(const QueryParser&) = delete;
+ QueryParser& operator=(const QueryParser&) = delete;
+};
+
+} // namespace stuff
+
+#endif /* QUERY_PARSER_HH */