18 #ifndef INCLUDED_CMDLINEARGS 19 #define INCLUDED_CMDLINEARGS 43 bool Has(
const char* name)
const;
50 CStr
Get(
const char* name)
const;
56 std::vector<CStr>
GetMultiple(
const char* name)
const;
65 typedef std::vector<std::pair<CStr, CStr> >
ArgsT;
70 #endif // INCLUDED_CMDLINEARGS CStr Get(const char *name) const
Get the value of the named parameter.
Definition: CmdLineArgs.cpp:64
CmdLineArgs()
Definition: CmdLineArgs.h:27
OsPath GetArg0() const
Get the value of argv[0], which is typically meant to be the name/path of the program (but the actual...
Definition: CmdLineArgs.cpp:90
std::vector< CStr > GetMultiple(const char *name) const
Get all the values given to the named parameter.
Definition: CmdLineArgs.cpp:74
bool Has(const char *name) const
Test whether the given name was specified, as either -name or -name=value
Definition: CmdLineArgs.cpp:58
ArgsT m_Args
Definition: CmdLineArgs.h:66
std::vector< std::pair< CStr, CStr > > ArgsT
Definition: CmdLineArgs.h:65
Definition: CmdLineArgs.h:24
OsPath m_Arg0
Definition: CmdLineArgs.h:67