summaryrefslogtreecommitdiff
path: root/src/args/ArgsParser.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/args/ArgsParser.java')
-rw-r--r--src/args/ArgsParser.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/args/ArgsParser.java b/src/args/ArgsParser.java
new file mode 100644
index 0000000..cf77fa4
--- /dev/null
+++ b/src/args/ArgsParser.java
@@ -0,0 +1,23 @@
+package org.manzerbredes.open_klm.args;
+
+import org.manzerbredes.open_klm.drivers.Driver;
+
+/**
+ * All arguments parser must implement this interface
+ *
+ * @author Manzerbredes
+ *
+ */
+public interface ArgsParser{
+ /**
+ * Apply parsed argument and exit the program
+ */
+ public void applyAndExit(Driver aDriver, String[] args);
+
+ /**
+ * Get the type of the driver the parser should parse
+ *
+ * @return class that represent the type of the driver (DriverTypeA.class for example)
+ */
+ public Class<?> getType();
+} \ No newline at end of file