53 lines
1.2 KiB
C++
Executable File
53 lines
1.2 KiB
C++
Executable File
/**
|
|
* 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
|