Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
+52
@@ -0,0 +1,52 @@
|
||||
/**
|
||||
* The EquipmentEventHandler class manages EquipmentEvents from TAB.
|
||||
* $Id$
|
||||
* $HeadURL$
|
||||
* $Author$
|
||||
* Created by Dassow Philipp, SLEA, 2017-09-04
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include "dds_handler.h"
|
||||
#include "logger.h"
|
||||
|
||||
#include <TrainingAreaBase/tab_dtc.h>
|
||||
|
||||
#include <QObject>
|
||||
#include <ngldb/nsqlquery.h>
|
||||
|
||||
namespace ParticipantManagement
|
||||
{
|
||||
class MainHandler;
|
||||
|
||||
namespace EquipmentEventHandling
|
||||
{
|
||||
|
||||
class EquipmentEventHandler
|
||||
: public QObject
|
||||
, protected Interface::Fts::EquipmentSystemEventDataRequestHandler
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit EquipmentEventHandler(ParticipantManagement::MainHandler * mainHandler, QObject *parent = nullptr);
|
||||
|
||||
bool init();
|
||||
|
||||
void onEquipmentSystemEventDataRequest(const rti::core::SampleIdentity &cookie,
|
||||
const EquipmentSystemEventDataRequest &request);
|
||||
|
||||
public slots:
|
||||
void onEquipmentEventChanged(const TrainingAreaBase::EquipmentEvent &data, DataModification modType);
|
||||
|
||||
private:
|
||||
void removeFromDDS(const QVector<qint64> &keys);
|
||||
|
||||
ParticipantManagement::MainHandler *m_mainHandler;
|
||||
int m_filterId;
|
||||
|
||||
LOGGER_T m_logger;
|
||||
|
||||
}; // class EquipmentEventHandler
|
||||
} // namespace EquipmentEventHandling
|
||||
} // namespace ParticipantManagement
|
||||
Reference in new issue
Block a user