 |
Blamite Game Engine - Strings
00381.04.17.23.2324.blamite
A library containing general purpose utilities and classes for use in multiple projects.
|
Go to the documentation of this file.
7 #define STRINGS_API __declspec(dllexport)
9 #define STRINGS_API __declspec(dllimport)
25 std::string
name =
"unknown";
Structure representing a command-line switch.
Definition: switches.h:23
STRINGS_API void ParseSwitches(int args_count, char *args[])
Parses command-line switches from the initial variables from main().
Definition: switches.cpp:8
STRINGS_API std::vector< BlamCommandSwitch > GetActiveSwitches()
Retrieves the list of loaded command-line switches.
Definition: switches.cpp:63
STRINGS_API std::vector< std::string > GetSwitchArguments(std::string switch_name)
Retrieves the list of arguments provided for the specified switch.
Definition: switches.cpp:85
std::string value
The value provided to the switch. Will be an empty string if no value was provided.
Definition: switches.h:26
std::string name
The name of the switch, excluding the - prefix.
Definition: switches.h:25
Namespace containing things relating to command-line switches.
Definition: switches.h:36
STRINGS_API bool IsSwitchPresent(std::string switch_name)
Determines if a given switch has been passed to the engine.
Definition: switches.cpp:68
#define STRINGS_API
Definition: switches.h:9
STRINGS_API std::string GetSwitchValue(std::string switch_name)
Retrieves the value of a switch.
Definition: switches.cpp:106