X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Console%2FTraits.hh;h=69533b4286f8ed8dcd035a1524894909e86bb38d;hb=fa5eaa97c8593e3587c87f25adb14f7f91f31f37;hp=4346eb07cd3352caeb19d931e766957d5addf7ca;hpb=e879290346fe5242d7df2d70ee552d264081492f;p=senf.git diff --git a/Console/Traits.hh b/Console/Traits.hh index 4346eb0..69533b4 100644 --- a/Console/Traits.hh +++ b/Console/Traits.hh @@ -123,6 +123,16 @@ namespace console { template void senf_console_parse_argument(ParseCommandInfo::TokensRange const & tokens, Type & out); + /** \brief Parse token range + + This helper will invoke the correct ArgumentTraits::parse function to parse the input tokens + into the passed in variable. + + \see ArgumentTraits + */ + template + void parse(ParseCommandInfo::TokensRange const & tokens, Type & out); + /** \brief Register enum type for argument parsing Enum types need to be registered explicitly to support parsing. @@ -160,7 +170,7 @@ namespace console { ///////////////////////////////hh.e//////////////////////////////////////// //#include "Traits.cci" -//#include "Traits.ct" +#include "Traits.ct" #include "Traits.cti" #endif