Improve Doxygen settings.
[command.git] / include / parameter.h
index 9e250869c1c7a95f6290cabf8926b718fe581ecc..5ca49317ffc9528d7d9fdc9f9cd1895207b4f5b9 100644 (file)
@@ -15,6 +15,8 @@ namespace command {
      *  ./myprog ARGUMENT
      */
     class Parameter : public Descriptive {
+    protected:
+        std::string userValue;
     public:
         typedef class Parameter Type;
         /**
@@ -27,9 +29,11 @@ namespace command {
         }
         virtual ~Parameter() {}
 
-        virtual void handle() {
-            std::cout << "Parameter::handle()" << std::endl;
-        };
+        virtual void handle() = 0;
+
+        virtual void passUserValue(std::string argVal) {
+            userValue = argVal;
+        }
     };
 }