17 #ifndef HH_SENF_Utils_Console_Utility_ 18 #define HH_SENF_Utils_Console_Utility_ 1 54 template <
class CharT>
59 operator CharT ()
const;
65 template <
class CharT>
69 static bool const singleToken =
true;
76 template <
class CharT>
106 static bool const singleToken =
true;
110 static std::string
str(type
const &
value);
118 static void format(type
const &
value, std::ostream & os);
122 template <
typename FlagType>
123 struct UnderlyingFlagType
125 # ifdef SENF_CXX11_ENABLED 126 typedef typename std::underlying_type<FlagType>::type
type;
128 typedef unsigned long type;
177 template <
typename Enum>
182 operator underlying_type()
const {
return value; }
193 template <
class Enum>
197 static bool const singleToken =
false;
200 static std::string
str(type
const &
value);
203 template <
class Enum>
207 static void format(type
const &
value, std::ostream & os);
Bit-mask flag argument type.
Parse character value as single-char string.
std::string str(Type const &value)
Format value.
FlagCollection(underlying_type v)
Customize return value formating.
void parse(ParseCommandInfo::TokensRange const &tokens, Type &out)
Parse token range.
unspecified_keyword_type description
One-line argument description.
boost::iterator_range< token_iterator > TokensRange
Customize argument parsing.
detail::UnderlyingFlagType< Enum >::type underlying_type
void format(Type const &value, std::ostream &os)
Format return value.