- 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>
47 lines
1.2 KiB
C++
Executable File
47 lines
1.2 KiB
C++
Executable File
|
|
|
|
|
|
#include "dds_handler.h"
|
|
|
|
#include <DDS/Core/pacemaker.h>
|
|
|
|
namespace WarehouseManagement
|
|
{
|
|
|
|
DdsHandler::DdsHandler(int domainId) : m_ddsConnector(new DDSConnector::DdsConnector(domainId, IDL::PartitionType::Global, 0)),
|
|
m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger()) {
|
|
DEBUG_LOG(m_logger) << "DdsHandler(" << domainId << ") for partition: " << m_ddsConnector->getDefaultPartition();
|
|
}
|
|
|
|
bool DdsHandler::init(const QStringList &qosFileList)
|
|
{
|
|
if (!m_ddsConnector->init(qosFileList))
|
|
{
|
|
ERROR_LOG(m_logger) << "Error initializing dds connections - aborting";
|
|
return false;
|
|
}
|
|
|
|
|
|
m_ddsConnector->initPublisherSubscriber();
|
|
|
|
|
|
m_pacemaker = std::make_shared<Core::Pacemaker>(m_ddsConnector);
|
|
|
|
m_exmDtc = ExerciseManagement::Interface::Dtc::create(m_ddsConnector);
|
|
bool bRet = m_exmDtc->enableExercise();
|
|
INFO_LOG(m_logger) << "Exm dtc initialised";
|
|
|
|
m_ppmDtc = ParticipantManagement::Interface::Dtc::create(m_ddsConnector);
|
|
bRet &= m_ppmDtc->enableType();
|
|
bRet &= m_ppmDtc->enableParty();
|
|
|
|
m_ppmFtc = ParticipantManagement::Interface::Ftc::create(m_ddsConnector);
|
|
bRet &= m_ppmFtc->enableModifyEquipmentTypeData();
|
|
|
|
m_pacemaker->setNewState(Core::RunningState::inner_enum::Starting);
|
|
|
|
return bRet;
|
|
}
|
|
|
|
}
|