add a function to check if a block is initialized

This commit is contained in:
Sven Czarnian
2021-08-19 08:21:08 +02:00
parent 0fa3559fc4
commit b453d4d8e2
2 changed files with 11 additions and 0 deletions

View File

@@ -12,6 +12,8 @@
#include <aman/types/Communication.h>
#include "protobuf/AircraftReport.pb.h"
namespace aman {
/**
* @brief Defines the aircraft reporter class which sends aircraft information to the backend
@@ -50,6 +52,11 @@ namespace aman {
* @brief Terminates the reporter connection
*/
bool deinitialize();
/**
* @brief Checks if the reporter is initialized
* @return True if it is initialized, else false
*/
bool initialized() const noexcept;
/**
* @brief Sends a new message to the backend
* @param[in] report The new aircraft report