![]() |
MRAS
Multi Rocket Avionics System
|
The main class of the MRAS system. More...
#include <MRAS_System.h>

Public Member Functions | |
| MRAS_System (MRAS_System &other)=delete | |
| void | operator= (const MRAS_System &)=delete |
| bool | add_subsystem (Subsystem *subsystem) |
| Add a Subsystem to the system. | |
| void | setup () |
| void | loop () |
| void | set_logger (TextLogger *logger) |
| Set the TextLogger that is used to log messages. | |
| TextLogger * | get_logger () |
| Get the TextLogger that is used to log messages. | |
| void | set_buzzer (BuzzerInterface *buzzer) |
| BuzzerInterface * | get_buzzer () |
| Get the Buzzer that is used to buzz. | |
Static Public Member Functions | |
| static MRAS_System * | get_instance () |
The main class of the MRAS system.
This class is the main class of the MRAS system. It is a singleton class that is responsible for managing all of the Subsystems. For more information, see the Software Architecture Overview page.
|
delete |
Singletons should not be cloneable
| bool MRAS_System::add_subsystem | ( | Subsystem * | subsystem | ) |
| BuzzerInterface * MRAS_System::get_buzzer | ( | ) |
Get the Buzzer that is used to buzz.
|
static |
This is the static method that controls the access to the singleton instance. On the first run, it creates a singleton object and places it into the static field. On subsequent runs, it returns the client existing object stored in the static field.
| TextLogger * MRAS_System::get_logger | ( | ) |
Get the TextLogger that is used to log messages.
| void MRAS_System::set_logger | ( | TextLogger * | logger | ) |
Set the TextLogger that is used to log messages.
| logger | A pointer to the TextLogger that is used to log messages |