version 0.3.0
[fms.git] / include / http / multipartparser.h
diff --git a/include/http/multipartparser.h b/include/http/multipartparser.h
new file mode 100644 (file)
index 0000000..a4a99d6
--- /dev/null
@@ -0,0 +1,19 @@
+#ifndef _multipartparser_\r
+#define _multipartparser_\r
+\r
+#include <Poco/Net/PartHandler.h>\r
+#include <map>\r
+#include <string>\r
+\r
+class MultiPartParser:public Poco::Net::PartHandler\r
+{\r
+public:\r
+       void handlePart(const Poco::Net::MessageHeader &header, std::istream &stream);\r
+\r
+       std::map<std::string,std::string> GetVars()     { return vars; }\r
+\r
+private:\r
+       std::map<std::string,std::string> vars;\r
+};\r
+\r
+#endif // _multipartparser_\r