17 std::string
wstrTostr(
const std::wstring& in);
25 std::wstring
strTowstr(
const std::string& in);
32 void getline(std::ifstream& file, std::string& out);
42 to =
dynamic_cast<To
>(src);
51 std::cout <<
"Fatal Error: dynamic cast failed" << std::endl;
std::string wstrTostr(const std::wstring &in)
Converts a wstirng to string.
Definition: util.cpp:7
std::wstring strTowstr(const std::string &in)
Converts a string to wstring.
Definition: util.cpp:14
void getline(std::ifstream &file, std::string &out)
wrapper for std::getline that removes CR (\r) at the end of the line.
Definition: util.cpp:21
To safe_dynamic_cast(From src) noexcept
Template to enable a safe dynamic cast by catching nullptr.
Definition: util.h:37