clan::Application Class Reference

Helper class to create cross platform main functions. More...

#include <clanapp.h>

Static Public Attributes

Attributes
static MainFunctionmain
 
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...
 

Detailed Description

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.

* class MyApplication
* {
* public:
* static int main(std::vector<std::string> &args);
* };
*
* Application clanapp(&MyApplication::main);
*

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.


The documentation for this class was generated from the following file: