mavtables  0.2.1
MAVLink router and firewall.
Public Member Functions | List of all members
App Class Reference

#include <App.hpp>

Collaboration diagram for App:
Collaboration graph

Public Member Functions

 App (std::vector< std::unique_ptr< Interface >> interfaces)
 
void run ()
 

Detailed Description

The mavtables application class.

Definition at line 31 of file App.hpp.

Constructor & Destructor Documentation

◆ App()

App::App ( std::vector< std::unique_ptr< Interface >>  interfaces)

Construct mavtables application from a vector of interfaces.

Neither the interfaces, nor the application will be started until the run method is called.

Parameters
interfacesA vector of interfaces.

Definition at line 40 of file App.cpp.

References InterfaceThreader::DELAY_START.

Member Function Documentation

◆ run()

void App::run ( )

Start the application.

This starts listening on all interfaces.

Exceptions
std::system_errorif an error is generated while waiting for Ctrl+C.
std::runtime_errorif run on Microsoft Windows.

Definition at line 59 of file App.cpp.


The documentation for this class was generated from the following files: