Add Grouped behaviour.
[command.git] / include / parameter.h
index 443111dbd4d0de120589ac9311a1d8d9008b57ff..87c1590ccc85fbcdbe9d6f69ce01f0d5fd2253a6 100644 (file)
@@ -2,6 +2,7 @@
 #define __COMMAND_PARAMETER_H
 
 #include <string>
+#include <sstream>
 
 #include "descriptive.h"
 #include "callable.h"
@@ -63,6 +64,17 @@ namespace command {
         virtual bool isUsed() {
             return used;
         }
+
+        /**
+         */
+        virtual bool hungryForValue() {
+            return false;
+        }
+
+        /**
+         * @return position where value starts in passed string
+         */
+        virtual unsigned int valuePosition(const std::string & ) = 0;
     };
 }