- 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>
76 lines
1.4 KiB
C++
Executable File
76 lines
1.4 KiB
C++
Executable File
/**
|
|
* DdsHandler for DDS
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Hanna E. Rathje, SLSE, 2015-09-02
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <DDS/DDSConnector/dds_connector.h>
|
|
#include <DDS/Core/core_dts_types.h>
|
|
|
|
#include <ComponentMonitor/cmo_dts.h>
|
|
#include <ComponentMonitor/cmo_fts.h>
|
|
#include "logger.h"
|
|
|
|
namespace Core
|
|
{
|
|
class Pacemaker;
|
|
}
|
|
namespace InfrastructureManagement
|
|
{
|
|
namespace Interface
|
|
{
|
|
class Dtc;
|
|
}
|
|
}
|
|
|
|
|
|
namespace ComponentMonitor
|
|
{
|
|
class DdsHandler final
|
|
{
|
|
public:
|
|
DdsHandler(int domainId, int exerciseId);
|
|
~DdsHandler();
|
|
|
|
bool init(const QStringList &qosFileList = QStringList());
|
|
|
|
void enableDtcs();
|
|
|
|
|
|
std::shared_ptr<Core::Pacemaker> pacemaker() const
|
|
{
|
|
return m_pacemaker;
|
|
}
|
|
|
|
std::shared_ptr<ComponentMonitor::Interface::Dts> dts() const
|
|
{
|
|
return m_ddsDts;
|
|
}
|
|
std::shared_ptr<ComponentMonitor::Interface::Fts> fts() const
|
|
{
|
|
return m_ddsFts;
|
|
}
|
|
|
|
std::shared_ptr<InfrastructureManagement::Interface::Dtc> ismDtc() const;
|
|
|
|
private:
|
|
std::shared_ptr<DDSConnector::DdsConnector> m_ddsConnector;
|
|
std::shared_ptr<DTS::CurrentRunningState> m_dtsCurrentRunningState;
|
|
std::shared_ptr<Core::Pacemaker> m_pacemaker;
|
|
|
|
std::shared_ptr<ComponentMonitor::Interface::Dts> m_ddsDts;
|
|
std::shared_ptr<ComponentMonitor::Interface::Fts> m_ddsFts;
|
|
|
|
std::shared_ptr<InfrastructureManagement::Interface::Dtc> m_ismDtc;
|
|
|
|
|
|
|
|
NGL::INGLLogger &m_logger;
|
|
};
|
|
|
|
} // namespace ComponentMonitor
|