diff options
Diffstat (limited to 'Runtime/Utilities/Argv.h')
-rw-r--r-- | Runtime/Utilities/Argv.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Runtime/Utilities/Argv.h b/Runtime/Utilities/Argv.h new file mode 100644 index 0000000..835b4bc --- /dev/null +++ b/Runtime/Utilities/Argv.h @@ -0,0 +1,30 @@ +#ifndef ARGV_H +#define ARGV_H + +void SetupArgv (int argc, const char** argv); + +const char **GetArgv(); +int GetArgc(); + +/// Returns true if the commandline contains a -name. +bool HasARGV (const std::string& name); + +bool IsBatchmode (); +bool IsHumanControllingUs (); + +void SetIsBatchmode (bool value); + +/// Returns a list of values for the argument +std::vector<std::string> GetValuesForARGV (const std::string& name); + +std::vector<std::string> GetAllArguments(); +std::string GetFirstValueForARGV (const std::string& name); + +void SetRelaunchApplicationArguments (const std::vector<std::string>& args); +std::vector<std::string> GetRelaunchApplicationArguments (); + +void PrintARGV (); + +void CheckBatchModeErrorString (const std::string& error); + +#endif |