- BUILD_RTI conditional compilation für RTI Connext DDS dependencies - Namespace fixes in core_dtc.h (Core:: → DDS::Core::) - CMakeLists.txt: BUILD_RTI option und conditional dependencies - Handler minelayer: namespace closing mit BUILD_RTI guard - Build erfolgreich mit BUILD_RTI=OFF validiert Signed-off-by: Torsten Wierschin <torsten.wierschin@life-maps.com>
44 lines
971 B
C++
Executable File
44 lines
971 B
C++
Executable File
/**
|
|
* DdsHandler for DDS
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Hanna E. Rathje, SLSE, 2015-09-02
|
|
*/
|
|
#pragma once
|
|
|
|
#if BUILD_RTI
|
|
#include <DDS/DDSConnector/dds_connector.h>
|
|
#include <DDS/Core/topic_lock_master.h>
|
|
#endif
|
|
#include "logger.h"
|
|
|
|
namespace GuezMinelayerProcessing
|
|
{
|
|
class DdsHandler final
|
|
{
|
|
public:
|
|
#if BUILD_RTI
|
|
explicit DdsHandler(const std::shared_ptr<DDSConnector::DdsConnector> &ddsConnector);
|
|
#else
|
|
explicit DdsHandler();
|
|
#endif
|
|
~DdsHandler() = default;
|
|
|
|
bool init(const QStringList &qosFileList = QStringList());
|
|
|
|
#if BUILD_RTI
|
|
std::shared_ptr<DDSConnector::DdsConnector> ddsConnector() const { return m_ddsConnector; }
|
|
#endif
|
|
std::shared_ptr<Core::TopicLockMaster> topicLockMaster() const { return m_topicLockMaster; }
|
|
|
|
private:
|
|
NGL::INGLLogger &m_logger;
|
|
#if BUILD_RTI
|
|
std::shared_ptr<DDSConnector::DdsConnector> m_ddsConnector;
|
|
#endif
|
|
std::shared_ptr<Core::TopicLockMaster> m_topicLockMaster;
|
|
};
|
|
|
|
}
|