#include <manager.hpp>
Public Member Functions | |
bool | addAndRunDevice (Sourcetype deviceType, std::string deviceName, UINT16 wantedId=0xFFFF) |
bool | addAndRunDevice (devices::BasicDevice *device, std::string deviceName, UINT16 wantedId=0xFFFF) |
bool | addApplication (Sourcetype appType, std::string appName, UINT16 wantedId=0xFFFF) |
bool | addApplication (application::BasicApplication *app, UINT16 wantedId=0xFFFF) |
devices::BasicDevice * | getDeviceById (UINT32 id) |
devices::BasicDevice * | getFirstDeviceByType (Sourcetype type) |
bool | importApplications () |
Manager () | |
Default constructor. More... | |
bool | runAllDevices () |
void | setDeviceData (BasicData *data) |
void | stopAllDevices () |
~Manager () | |
Destructor. More... | |
Private Types | |
typedef std::vector< application::BasicApplication * > | ApplicationList |
typedef std::vector< devices::BasicDevice * > | DeviceList |
Private Member Functions | |
UINT16 | getNextSourceId () |
void | sourceThreadFunction (bool &endThread, UINT16 &waitTimeMs) |
Definition at line 18 of file manager.hpp.
|
private |
Definition at line 48 of file manager.hpp.
|
private |
Definition at line 44 of file manager.hpp.
Manager::Manager | ( | ) |
Default constructor.
Definition at line 25 of file manager.cpp.
Manager::~Manager | ( | ) |
Destructor.
Definition at line 41 of file manager.cpp.
bool Manager::addAndRunDevice | ( | Sourcetype | deviceType, |
std::string | deviceName, | ||
UINT16 | wantedId = 0xFFFF |
||
) |
Definition at line 91 of file manager.cpp.
bool Manager::addAndRunDevice | ( | devices::BasicDevice * | device, |
std::string | deviceName, | ||
UINT16 | wantedId = 0xFFFF |
||
) |
Definition at line 114 of file manager.cpp.
bool Manager::addApplication | ( | Sourcetype | appType, |
std::string | appName, | ||
UINT16 | wantedId = 0xFFFF |
||
) |
Definition at line 178 of file manager.cpp.
bool Manager::addApplication | ( | application::BasicApplication * | app, |
UINT16 | wantedId = 0xFFFF |
||
) |
Definition at line 212 of file manager.cpp.
devices::BasicDevice * Manager::getDeviceById | ( | UINT32 | id | ) |
Definition at line 392 of file manager.cpp.
devices::BasicDevice * Manager::getFirstDeviceByType | ( | Sourcetype | type | ) |
Definition at line 412 of file manager.cpp.
|
private |
Definition at line 73 of file manager.cpp.
bool Manager::importApplications | ( | ) |
bool Manager::runAllDevices | ( | ) |
Kommando: Los...
Definition at line 240 of file manager.cpp.
void Manager::setDeviceData | ( | BasicData * | data | ) |
Definition at line 291 of file manager.cpp.
|
private |
Thread-Funktion fuer das Verteilen der Daten.
Aus diesem Kontext heraus werden die Applikationen aufgerufen!
Pro Aufruf wird nur 1 Datum verteilt. Grund ist es, auch mit einem Prozessor den anderen Threads ggf. genug Rechenleistung zu ueberlassen. Hier koennten pro Aufruf aber auch mehr Daten verteilt werden, etwa wenn CAN-Nachrichten mit hoher Frequenz eintreffen.
Die Daten werden aktuell nicht an eine globale "Drain" weitergeleitet.
Definition at line 333 of file manager.cpp.
void Manager::stopAllDevices | ( | ) |
Definition at line 268 of file manager.cpp.
|
private |
Definition at line 49 of file manager.hpp.
|
private |
Definition at line 39 of file manager.hpp.
|
private |
Definition at line 45 of file manager.hpp.
|
private |
Definition at line 41 of file manager.hpp.
|
private |
Definition at line 52 of file manager.hpp.
|
private |
Definition at line 55 of file manager.hpp.
|
private |
Definition at line 54 of file manager.hpp.