|
synapse-app-sdk
C++ SDK for Synapse Apps
|
Singleton class for running a Synapse application. More...
#include <app.hpp>
Public Member Functions | |
| AppRunner (const AppRunner &)=delete | |
| Delete copy constructor. | |
| AppRunner & | operator= (const AppRunner &)=delete |
| Delete copy assignment operator. | |
| AppRunner (AppRunner &&)=delete | |
| Delete move constructor. | |
| AppRunner & | operator= (AppRunner &&)=delete |
| Delete move assignment operator. | |
| void | stop () noexcept |
| Stops the application. | |
| template<typename T> | |
| int | run () |
| Runs an application of type T. | |
| void | handle_signal (int signal) |
| Handles a signal. | |
Static Public Member Functions | |
| static AppRunner & | instance () |
| Gets the singleton instance. | |
Singleton class for running a Synapse application.
Handles application lifecycle and signal handling.
|
inline |
Handles a signal.
| signal | Signal number |
|
inlinestatic |
Gets the singleton instance.
|
inline |
Runs an application of type T.
| T | Application type derived from App |