- Merged 292 changed files from dlbo snapshot - Fixed IDL enum collisions (PortType, PdmEventType) - Fixed Grantlee template for C++11 scoped enums - Fixed CMake VERSION_GREATER syntax - Added missing directories (THP, LtsRestClient, etc.) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
51 lines
1.3 KiB
C++
Executable File
51 lines
1.3 KiB
C++
Executable File
/**
|
|
* DdsHandler for HighLevelArchitecture
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Christian Ehrlicher, SLSE, 2017-04-07
|
|
*/
|
|
#pragma once
|
|
|
|
#include <DDS/DDSConnector/dds_connector.h>
|
|
#include <DDS/Core/core_dts_types.h>
|
|
#include <ExerciseManagement/exm_dtc.h>
|
|
#include <QObject>
|
|
|
|
#include <Common/logger.h>
|
|
|
|
namespace Core
|
|
{
|
|
class Pacemaker;
|
|
}
|
|
|
|
namespace HighLevelArchitecture
|
|
{
|
|
class DdsHandler : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
DdsHandler(int domainId, int exerciseId);
|
|
~DdsHandler();
|
|
|
|
bool init(const QStringList &qosFileList = QStringList());
|
|
|
|
std::shared_ptr<Core::Pacemaker> pacemaker() const { return m_pacemaker; }
|
|
std::shared_ptr<DDSConnector::DdsConnector> ddsConnector() const { return m_ddsConnector; }
|
|
|
|
bool hlaIsActive() const { return m_hlaIsActive; }
|
|
|
|
Q_SIGNALS:
|
|
void exerciseHlaStateChanged(bool bHlaEnabled);
|
|
private:
|
|
void onExerciseChanged(const ExerciseManagement::Exercise &ex, DataModification modType);
|
|
private:
|
|
std::shared_ptr<DDSConnector::DdsConnector> m_ddsConnector;
|
|
std::shared_ptr<Core::Pacemaker> m_pacemaker;
|
|
std::shared_ptr<ExerciseManagement::Interface::Dtc> m_dtcExm;
|
|
bool m_hlaIsActive;
|
|
NGL::INGLLogger &m_logger;
|
|
};
|
|
|
|
} // namespace HighLevelArchitecture
|