X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fcore%2Fapplication.h;h=7dfea8a0ad13abaa05d3102ace97a0962e957fd4;hp=c7a1af137a93cacdc921e28c58419cf70947bb16;hb=609c9a508cfdc7b42c46c4f21d17639204165a00;hpb=967785734be5c3fc6f75da122c2d93ebbb338271 diff --git a/source/core/application.h b/source/core/application.h index c7a1af1..7dfea8a 100644 --- a/source/core/application.h +++ b/source/core/application.h @@ -1,11 +1,12 @@ #ifndef MSP_CORE_APPLICATION_H_ #define MSP_CORE_APPLICATION_H_ +#include + namespace Msp { /** -Base class for applications. Inherit the main class from this and add a static -member of type RegApp. +Base class for applications. See also RegisteredApplication. */ class Application { @@ -46,9 +47,15 @@ protected: virtual void sighandler(int) { } private: static void sighandler_(int); + + static void display_exception(const std::exception &); }; +/** +Registers the class to be used for program startup. The main application class +should be derived from this. +*/ template class RegisteredApplication: public Application {