Hotwheels-Cluster 1.2
Creation of Cluster APP for SEA:ME project.
 
Loading...
Searching...
No Matches
main.cpp File Reference

Main function for the car controls service. More...

#include "ControlsManager.hpp"
#include <QCoreApplication>
#include <csignal>
#include <iostream>

Go to the source code of this file.

Functions

void handleSigint (int)
 SIGINT signal handler.
 
int main (int argc, char *argv[])
 Entry point for the car controls service.
 

Variables

volatile bool keepRunning = true
 

Detailed Description

Main function for the car controls service.

Version
0.1
Date
2025-02-12

This file contains the main function for the car controls service.

Author
Félix LE BIHAN (@Fle-bihh)
Tiago Pereira (@t-pereira06)
Ricardo Melo (@reomelo)
Michel Batista (@MicchelFAB)

Definition in file main.cpp.

Function Documentation

◆ handleSigint()

void handleSigint ( int )

SIGINT signal handler.

This function will be called when the SIGINT signal is received. The function will quit the QCoreApplication.

Definition at line 27 of file main.cpp.

Here is the caller graph for this function:

◆ main()

int main ( int argc,
char * argv[] )

Entry point for the car controls service.

Parameters
argcThe number of command-line arguments.
argvThe array of command-line arguments.
Returns
An integer indicating the exit status of the application.

Initializes the QCoreApplication and sets up signal handling for SIGINT. Instantiates the ControlsManager and starts the event loop. If an exception is thrown during execution, it is caught and logged, returning a non-zero exit status. The application runs until quit is invoked.

Definition at line 43 of file main.cpp.

Here is the call graph for this function:

Variable Documentation

◆ keepRunning

volatile bool keepRunning = true

Definition at line 20 of file main.cpp.