]> git.stg.codes - stg.git/blobdiff - projects/sgconf/action.h
Implemented XDG-compliant config file reading.
[stg.git] / projects / sgconf / action.h
index 64d7c1e83e01ed6aceb653bde460c4157d182422..0c1b4f92a57aed3e70ad0acf663c22463a25c281 100644 (file)
@@ -40,6 +40,7 @@ class ACTION
         virtual std::string DefaultDescription() const = 0;
         virtual OPTION_BLOCK & Suboptions() = 0;
         virtual PARSER_STATE Parse(int argc, char ** argv) = 0;
+        virtual void ParseValue(const std::string &) {}
 
         class ERROR : public std::runtime_error
         {
@@ -49,13 +50,6 @@ class ACTION
         };
 };
 
-template <typename T>
-class ACTION_CLONE_MIXIN : public ACTION
-{
-    public:
-        virtual ACTION * Clone() const { return new T(*this); }
-};
-
 } // namespace SGCONF
 
 #endif