36 #ifndef __mitkCommandLineParser_h
37 #define __mitkCommandLineParser_h
46 #pragma warning(disable : 4251)
120 std::map<std::string, us::Any> parseArguments(
const StringContainerType &arguments,
bool *ok =
nullptr);
126 std::map<std::string, us::Any> parseArguments(
int argc,
char **argv,
bool *ok =
nullptr);
135 std::string errorString()
const;
146 const StringContainerType &unparsedArguments()
const;
158 bool argumentAdded(
const std::string &argument)
const;
168 bool argumentParsed(
const std::string &argument)
const;
215 void addArgument(
const std::string &longarg,
216 const std::string &shortarg,
218 const std::string &argLabel,
219 const std::string &argHelp = std::string(),
221 bool optional =
true,
222 bool ignoreRest =
false,
223 bool deprecated =
false);
237 void addDeprecatedArgument(
const std::string &longarg,
238 const std::string &shortarg,
239 const std::string &argLabel,
240 const std::string &argHelp);
256 bool setExactMatchRegularExpression(
const std::string &argument,
257 const std::string &expression,
258 const std::string &exactMatchFailedMessage);
265 std::string::size_type fieldWidth()
const;
275 std::string helpText()
const;
301 void setArgumentPrefix(
const std::string &longPrefix,
const std::string &shortPrefix);
313 void beginGroup(
const std::string &description);
328 void setStrictModeEnabled(
bool strictMode);
333 void generateXmlOutput();
340 void setTitle(std::string title);
346 void setContributor(std::string contributor);
352 void setCategory(std::string category);
358 void setDescription(std::string description);
368 void changeParameterGroup(std::string name, std::string tooltip);
372 ctkInternal *Internal;
375 std::string Contributor;
376 std::string Category;
377 std::string Description;
378 std::string ParameterGroupName;
379 std::string ParameterGroupDescription;
#define MITKCOMMANDLINE_EXPORT
std::vector< std::string > StringList
std::vector< std::string > StringContainerType