 |
Blamite Game Engine - Strings
00390.07.02.23.1947.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";
STRINGS_API std::vector< std::string > Split(std::string string, std::string splitter)
Splits a string around any instance of a substring.
Definition: string.cpp:136
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 void LogEvent(BlamBasicLogMessage message)
Logs an event to the logger.
Definition: logger.cpp:41
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
STRINGS_API bool StartsWith(std::string string, std::string starts_with, bool case_insensetive=false)
Determines whether or not a string starts with another string, case-insensetive.
Definition: string.cpp:7
STRINGS_API std::string ToLower(std::string string)
Transforms a string to all-lowercase.
Definition: string.cpp:76
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
std::vector< BlamCommandSwitch > active_switches
Definition: switches.cpp:6
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
std::basic_string< CharT, Traits, Allocator > to_string(uuid const &id)
Definition: uuid.h:581
STRINGS_API std::string GetSwitchValue(std::string switch_name)
Retrieves the value of a switch.
Definition: switches.cpp:106
@ Warning
Indicates a warning message. Not something critical, but something that could cause unexpected behavi...