![]() |
CommRaT 2.0.0
C++20 Real-Time Messaging Framework
|
#include <commrat/commrat.hpp>#include <commrat/module/module_config.hpp>#include <commrat/platform/threading.hpp>#include <rfl.hpp>#include <rfl/json.hpp>#include <csignal>#include <cstdlib>#include <iostream>#include <atomic>#include <string>Go to the source code of this file.
Namespaces | |
| namespace | commrat |
| CommRaT - Modern C++ Real-Time Communication Framework. | |
Macros | |
| #define | COMMRAT_MODULE_MAIN(ModuleType, Registry) |
| Macro for creating standalone module binaries. | |
Functions | |
| void | commrat::signal_handler (int signal) |
| Signal handler for graceful shutdown. | |
| template<typename ModuleType , typename Registry > | |
| int | commrat::module_main (const ModuleConfig &config) |
| Main entry point for standalone module binaries. | |
| template<typename ModuleType , typename Registry > | |
| int | commrat::module_main (int argc, char **argv) |
| Main entry point with argc/argv handling. | |
Variables | |
| std::atomic< bool > | commrat::g_shutdown_requested {false} |
| #define COMMRAT_MODULE_MAIN | ( | ModuleType, | |
| Registry | |||
| ) |
Macro for creating standalone module binaries.
Generates main() that calls module_main<ModuleType, Registry>(argc, argv).
Supports three configuration modes:
| ModuleType | Module class to instantiate |
| Registry | Message registry (CommRaT<...>) |
Example:
Definition at line 166 of file module_main.hpp.