]> git.tdb.fi Git - libs/core.git/blobdiff - source/core/application.h
Move most platform-specific code into overlay directories
[libs/core.git] / source / core / application.h
index c7a1af137a93cacdc921e28c58419cf70947bb16..7dfea8a0ad13abaa05d3102ace97a0962e957fd4 100644 (file)
@@ -1,11 +1,12 @@
 #ifndef MSP_CORE_APPLICATION_H_
 #define MSP_CORE_APPLICATION_H_
 
+#include <stdexcept>
+
 namespace Msp {
 
 /**
-Base class for applications.  Inherit the main class from this and add a static
-member of type RegApp<MainClass>.
+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<typename T>
 class RegisteredApplication: public Application
 {