24 #ifndef DtCmdLine_SWITCH_ARG_H
25 #define DtCmdLine_SWITCH_ARG_H
36 #ifdef DtUSE_UTILITIES_NAMESPACE
37 namespace DtUSE_UTILITIES_NAMESPACE
74 const std::string& name,
75 const std::string& desc,
94 const std::string& name,
95 const std::string& desc,
109 virtual bool processArg(
int* i, std::vector<std::string>& args);
115 bool combinedSwitchesMatch(std::string& combined);
120 bool getValue()
const;
131 inline SwitchArg::SwitchArg(
const std::string& flag,
132 const std::string& name,
133 const std::string& desc,
136 :
Arg(flag, name, desc, false, false, v),
141 const std::string& name,
142 const std::string& desc,
146 :
Arg(flag, name, desc, false, false, v),
154 inline SwitchArg::operator bool() {
return _value; }
169 for (
unsigned int i = 1; i < combinedSwitches.length(); i++ )
170 if ( !
_flag.empty() && combinedSwitches[i] ==
_flag[0] )
223 #ifdef DtUSE_UTILITIES_NAMESPACE