X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Console%2FParseParameter.hh;h=73a8fc6282de8272a23d9572ff046f333f7f70ec;hb=8025a3e571ed9de108f7203907baa4cabc801ea9;hp=31ac63e76067702c2531157dc584806fd3913c1f;hpb=bf1d8ba5ce6fc6a169a938183f8d01c8bdbccf32;p=senf.git diff --git a/Console/ParseParameter.hh b/Console/ParseParameter.hh index 31ac63e..73a8fc6 100644 --- a/Console/ParseParameter.hh +++ b/Console/ParseParameter.hh @@ -48,8 +48,11 @@ namespace detail { std::string type; std::string name; bool hasDefault; + std::string doc; ParameterInfoBase(std::string const & type); + + virtual std::string defaultValueStr() const = 0; }; template @@ -62,6 +65,8 @@ namespace detail { ParameterInfo(); ParameterType defaultValue; + + virtual std::string defaultValueStr() const; }; template @@ -88,6 +93,7 @@ namespace detail { typedef Type type; static void parse(ParseCommandInfo::TokensRange const & tokens, Type & out); static std::string typeDescription(); + static std::string dump(Type const & value); }; }}}