CrossGuard
|
Main entry point for the application. Initializes the application, runs the main system, and then performs cleanup upon exit. More...
#include "main/MainSystem.h"
#include "utils/Logger.h"
#include "utils/FirestoreLogger.h"
#include <iostream>
#include <string>
Functions | |
void | initApplication () |
Initializes the application's logging systems. | |
void | closeApplication (MainSystem &mainSystem) |
Shuts down the application, ensuring graceful termination of systems and logging. | |
int | main () |
The main function of the application. | |
Main entry point for the application. Initializes the application, runs the main system, and then performs cleanup upon exit.
void closeApplication | ( | MainSystem & | mainSystem | ) |
Shuts down the application, ensuring graceful termination of systems and logging.
mainSystem | Reference to the MainSystem object to shut down. |
void initApplication | ( | ) |
Initializes the application's logging systems.
This function initializes the FirestoreLogger and Logger to begin logging application events. It attempts to connect to Firestore for logging and sets up a local log file.
int main | ( | ) |
The main function of the application.
Initializes the application, creates and runs the main system, and then closes the application on completion.