Public Member Functions | Private Types | Private Member Functions | Private Attributes
Manager Class Reference

#include <manager.hpp>

List of all members.

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::BasicDevicegetDeviceById (UINT32 id)
devices::BasicDevicegetFirstDeviceByType (Sourcetype type)
bool importApplications ()
 Manager ()
 Default constructor.
bool runAllDevices ()
void setDeviceData (BasicData *data)
void stopAllDevices ()
 ~Manager ()
 Destructor.

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)

Private Attributes

ApplicationList m_appList
bool m_beVerbose
DeviceList m_deviceList
UINT16 m_nextSourceId
BasicDataBuffer m_sourceBuffer
Mutex m_sourceBufferMutex
SickThread< Manager,&Manager::sourceThreadFunctionm_sourceThread

Detailed Description

Definition at line 18 of file manager.hpp.


Member Typedef Documentation

Definition at line 48 of file manager.hpp.

typedef std::vector<devices::BasicDevice*> Manager::DeviceList [private]

Definition at line 44 of file manager.hpp.


Constructor & Destructor Documentation

Default constructor.

Definition at line 25 of file manager.cpp.

Destructor.

Definition at line 41 of file manager.cpp.


Member Function Documentation

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.

Definition at line 392 of file manager.cpp.

Definition at line 412 of file manager.cpp.

Definition at line 73 of file manager.cpp.

Kommando: Los...

Definition at line 240 of file manager.cpp.

Definition at line 291 of file manager.cpp.

void Manager::sourceThreadFunction ( bool &  endThread,
UINT16 waitTimeMs 
) [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.

Definition at line 268 of file manager.cpp.


Member Data Documentation

Definition at line 49 of file manager.hpp.

bool Manager::m_beVerbose [private]

Definition at line 39 of file manager.hpp.

Definition at line 45 of file manager.hpp.

Definition at line 41 of file manager.hpp.

Definition at line 52 of file manager.hpp.

Definition at line 55 of file manager.hpp.

Definition at line 54 of file manager.hpp.


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


libsick_ldmrs
Author(s): SICK AG , Martin G√ľnther , Jochen Sprickerhof
autogenerated on Wed Jun 14 2017 04:04:50