Helper class to create cross platform main functions. More...
#include <clanapp.h>
Static Public Attributes | |
Attributes | |
static MainFunction * | main |
static bool | enable_catch_exceptions |
Construction | |
typedef int( | MainFunction )(const std::vector< std::string > &args) |
Application (MainFunction *main_function, bool catch_exceptions=true) | |
Clan Application constructor. More... | |
Helper class to create cross platform main functions.
To use this class, create a static main function in your application class, then make a single global instance of Application.
If you do not want exceptions to be automatically caught, pass "false" to the optional catch_exceptions parameter in Application
Your program does not have to use this class.