13 #ifndef mitkCommandLineParser_h
14 #define mitkCommandLineParser_h
98 std::map<std::string, us::Any> parseArguments(
const StringContainerType &arguments,
bool *ok =
nullptr);
104 std::map<std::string, us::Any> parseArguments(
int argc,
char **argv,
bool *ok =
nullptr);
113 std::string errorString()
const;
136 bool argumentAdded(
const std::string &argument)
const;
146 bool argumentParsed(
const std::string &argument)
const;
195 void addArgument(
const std::string &longarg,
196 const std::string &shortarg,
198 const std::string &argLabel,
199 const std::string &argHelp = std::string(),
201 bool optional =
true,
202 bool ignoreRest =
false,
203 bool deprecated =
false,
219 void addDeprecatedArgument(
const std::string &longarg,
220 const std::string &shortarg,
221 const std::string &argLabel,
222 const std::string &argHelp);
229 std::vector < std::map<std::string, us::Any> > getArgumentList();
245 bool setExactMatchRegularExpression(
const std::string &argument,
246 const std::string &expression,
247 const std::string &exactMatchFailedMessage);
254 std::string::size_type fieldWidth()
const;
263 std::string helpText()
const;
289 void setArgumentPrefix(
const std::string &longPrefix,
const std::string &shortPrefix);
301 void beginGroup(
const std::string &description);
316 void setStrictModeEnabled(
bool strictMode);
321 void generateXmlOutput();
328 void setTitle(std::string title);
334 void setContributor(std::string contributor);
340 void setCategory(std::string category);
346 void setDescription(std::string description);
356 void changeParameterGroup(std::string name, std::string tooltip);