Inviwo  0.9.10.1
Inviwo documentation
inviwo::CommandLineParser Class Reference

Wrapper class to handle command line parsing. More...

#include <commandlineparser.h>

Public Types

enum  Mode { Normal, Quiet }
 

Public Member Functions

 CommandLineParser (int argc, char **argv)
 
void parse (int argc, char **argv, Mode mode=Mode::Normal)
 
void parse (Mode mode=Mode::Normal)
 
void setArgc (int argc)
 
void setArgv (char **argv)
 
const std::string getOutputPath () const
 
const std::string getWorkspacePath () const
 
const std::string getLogToFileFileName () const
 
bool getQuitApplicationAfterStartup () const
 
bool getLoadWorkspaceFromArg () const
 
bool getShowSplashScreen () const
 
bool getLogToFile () const
 
bool getLogToConsole () const
 
bool getDisableResourceManager () const
 
int getARGC () const
 
char ** getARGV () const
 
void processCallbacks ()
 
void add (TCLAP::Arg *arg)
 
void add (TCLAP::Arg *arg, std::function< void()> callback, int priority=0)
 
void xorAdd (TCLAP::Arg *a, std::function< void()> callbackA, int priorityA, TCLAP::Arg *b, std::function< void()> callbackB, int priorityB)
 
void remove (TCLAP::Arg *arg)
 

Detailed Description

Wrapper class to handle command line parsing.

Wraps around TCLAP to provide command line argument parsing.


The documentation for this class was generated from the following files: