40 #ifndef _CommandLineIncludes_H__ 41 #define _CommandLineIncludes_H__ 48 #define SetCommandLineArgument(name, defaultValue) \ 49 orxonox::CommandLineArgument& CmdArgumentDummyBoolVar##name \ 50 = (new orxonox::SI_CLA(new orxonox::CommandLineArgument(#name, defaultValue)))->getArgument() 51 #define SetCommandLineSwitch(name) \ 52 SetCommandLineArgument(name, false) 65 virtual void load()
override 72 {
return *this->argument_; }
static constexpr Type COMMAND_LINE_ARGUMENT
Definition: CorePrereqs.h:96
StaticallyInitializedCommandLineArgument(CommandLineArgument *argument)
Definition: CommandLineIncludes.h:59
Shared library macros, enums, constants and forward declarations for the core library ...
~StaticallyInitializedCommandLineArgument()
Definition: CommandLineIncludes.h:63
virtual void unload() override
Definition: CommandLineIncludes.h:68
CommandLineArgument & getArgument()
Definition: CommandLineIncludes.h:71
Definition: CommandLineIncludes.h:56
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
Definition: StaticallyInitializedInstance.h:36
#define _CoreExport
Definition: CorePrereqs.h:61
static void addArgument(CommandLineArgument *argument)
Adds a new CommandLineArgument to the internal map.
Definition: CommandLineParser.cc:316
virtual void load() override
Definition: CommandLineIncludes.h:65
CommandLineArgument * argument_
Definition: CommandLineIncludes.h:75
static void removeArgument(CommandLineArgument *argument)
Removes a CommandLineArgument from the internal map.
Definition: CommandLineParser.cc:330
Declaration of CommandLineParser and CommandLineArgument, definition of the SetCommandLineArgument() ...
Container class for a command line argument of any type supported by MultiType.
Definition: CommandLineParser.h:65
StaticallyInitializedCommandLineArgument SI_CLA
Definition: CommandLineIncludes.h:78