|
Wrath of Zeus
Made by Torchlight Games for CSE 125 SP24
|
Functions | |
| std::vector< std::string > | get_string_tokens (std::string input, char delimeter) |
| Reads an input string and splits it into a vector of strings by a character delimeter. More... | |
| void | initialize_commands (std::vector< Command * > &commands) |
| Allocate all Command objects recognized by the debugger. More... | |
| void | free_commands (const std::vector< Command * > &commands) |
| Deallocate all Command objects allocated by initialize_commands(). More... | |
| void | initialize_command_map (std::unordered_map< std::string, Command & > &command_map, const std::vector< Command * > &commands) |
| Initialize string (name) -> Command * hashmap maintained by the debugger to all known commands. More... | |
Deallocate all Command objects allocated by initialize_commands().
| commands |
| std::vector< std::string > get_string_tokens | ( | std::string | input, |
| char | delimeter | ||
| ) |
Reads an input string and splits it into a vector of strings by a character delimeter.
| input | String to split into tokens |
| delimeter | Delimiter by which to split string into tokens (no token will contain the delimeter character) |
| void initialize_command_map | ( | std::unordered_map< std::string, Command & > & | command_map, |
| const std::vector< Command * > & | commands | ||
| ) |
Initialize string (name) -> Command * hashmap maintained by the debugger to all known commands.
| command_map | Reference to the debugger's command map (assumed empty). |