51 lines
1.3 KiB
C++
Executable File
51 lines
1.3 KiB
C++
Executable File
/**
|
|
* Dds Handler for MDM
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by hjl, SLSE, 2016-06-06
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <DDS/DDSConnector/dds_connector.h>
|
|
#include <MeteoDataManagement/mdm_dts.h>
|
|
#include <MeteoDataManagement/mdm_fts.h>
|
|
|
|
#include <DDS/Core/core_dtc.h>
|
|
|
|
#include "logger.h"
|
|
|
|
namespace Core
|
|
{
|
|
class Pacemaker;
|
|
}
|
|
|
|
namespace MeteoDataManagement
|
|
{
|
|
class DdsHandler
|
|
{
|
|
public:
|
|
explicit DdsHandler(int domainId);
|
|
~DdsHandler();
|
|
|
|
bool init(const QStringList &qosFileList = QStringList());
|
|
|
|
std::shared_ptr<DDSConnector::DdsConnector> dds() const { return m_ddsConnector; }
|
|
std::shared_ptr<Core::Pacemaker> pacemaker() const { return m_pacemaker; }
|
|
std::shared_ptr<MeteoDataManagement::Interface::Dts> dts() const { return m_ddsDts; }
|
|
std::shared_ptr<MeteoDataManagement::Interface::Fts> fts() const { return m_ddsFts; }
|
|
|
|
qint64 currentPartitionTime() const;
|
|
|
|
private:
|
|
std::shared_ptr<DDSConnector::DdsConnector> m_ddsConnector;
|
|
std::shared_ptr<Core::Interface::Dtc> m_dtcCore;
|
|
std::shared_ptr<Core::Pacemaker> m_pacemaker;
|
|
std::shared_ptr<MeteoDataManagement::Interface::Dts> m_ddsDts;
|
|
std::shared_ptr<MeteoDataManagement::Interface::Fts> m_ddsFts;
|
|
NGL::INGLLogger &m_logger;
|
|
};
|
|
|
|
}
|