X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/a5e0ee99821e8c52858667608f11a51f916a3df6..669bf62b01b121a3c9fc5092cd9d2ab3392fd92c:/projects/sgconf/action.h diff --git a/projects/sgconf/action.h b/projects/sgconf/action.h index 0ffd4aad..940ea7f6 100644 --- a/projects/sgconf/action.h +++ b/projects/sgconf/action.h @@ -22,6 +22,7 @@ #define __STG_SGCONF_ACTION_H__ #include +#include #include namespace SGCONF @@ -29,6 +30,7 @@ namespace SGCONF class OPTION_BLOCK; struct PARSER_STATE; +struct CONFIG; class ACTION { @@ -39,7 +41,8 @@ class ACTION virtual std::string ParamDescription() const = 0; virtual std::string DefaultDescription() const = 0; virtual OPTION_BLOCK & Suboptions() = 0; - virtual PARSER_STATE Parse(int argc, char ** argv) = 0; + virtual PARSER_STATE Parse(int argc, char ** argv, void * data = NULL) = 0; + virtual void ParseValue(const std::string &) {} class ERROR : public std::runtime_error {