aboutsummaryrefslogtreecommitdiff
path: root/Src/Wasabi/bfc/parse/paramparser.h
diff options
context:
space:
mode:
Diffstat (limited to 'Src/Wasabi/bfc/parse/paramparser.h')
-rw-r--r--Src/Wasabi/bfc/parse/paramparser.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/Src/Wasabi/bfc/parse/paramparser.h b/Src/Wasabi/bfc/parse/paramparser.h
new file mode 100644
index 00000000..69573bdc
--- /dev/null
+++ b/Src/Wasabi/bfc/parse/paramparser.h
@@ -0,0 +1,23 @@
+#ifndef __PARAMPARSE_H
+#define __PARAMPARSE_H
+
+#include <bfc/parse/pathparse.h>
+
+class ParamParser : private PathParserW
+{
+ public:
+
+ ParamParser(const wchar_t *str, const wchar_t *sep=L";", int unique=0) : PathParserW(str, sep, unique) {}
+
+ int findGuid(GUID g);
+ int findString(const wchar_t *str);
+
+ int hasGuid(GUID g) { return findGuid(g) >= 0; }
+ int hasString(const wchar_t *str) { return findString(str) >= 0; }
+
+ const wchar_t *enumItem(int element) { return enumString(element); }
+ int getNumItems() { return getNumStrings(); }
+ const wchar_t *getLastItem() { return getLastString(); }
+};
+
+#endif