redhand::helper class

A singlton with a lot of helper functions available to all parts of redhand.

Contents

Public static functions

static auto split_string(const std::string& s, char delimiter) -> std::vector<std::string>
split a string into multiple substrings
static auto getEngine() -> engine&
Get a reference to the attached engine, will throw an execption if m_engine is not set.

Function documentation

static std::vector<std::string> redhand::helper::split_string(const std::string& s, char delimiter)

split a string into multiple substrings

Parameters
s the string to split
delimiter the character where the string will be split
Returns std::vector<std::string> a vector conatining all the substrings

static engine& redhand::helper::getEngine()

Get a reference to the attached engine, will throw an execption if m_engine is not set.

Returns engine& A reference to the atteched engine.