- 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>
46 lines
1.2 KiB
C++
Executable File
46 lines
1.2 KiB
C++
Executable File
/**
|
|
* DdsHandler for VideoOverlayManagement
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by hjl, SLSE, 2016-07-06
|
|
*/
|
|
|
|
#include "dds_handler.h"
|
|
#include <DDS/Core/pacemaker.h>
|
|
|
|
namespace DifferentialGPS
|
|
{
|
|
|
|
DdsHandler::DdsHandler(int domainId)
|
|
: m_ddsConnector(std::make_shared<DDSConnector::DdsConnector>(domainId, IDL::PartitionType::Global))
|
|
, m_logger(getLogger("DdsHandler"))
|
|
{
|
|
DEBUG_LOG(m_logger) << "DdsHandler(" << domainId << ") for partition: " << m_ddsConnector->getDefaultPartition();
|
|
} // end of ctor()
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
bool DdsHandler::init(const QStringList &qosFileList)
|
|
{
|
|
INFO_LOG(m_logger) << "--- Start DifferentialGPS DDSHandler.";
|
|
|
|
if (!m_ddsConnector->init(qosFileList))
|
|
{
|
|
ERROR_LOG(m_logger) << "Error initializing dds connections - aborting";
|
|
return false;
|
|
}
|
|
|
|
// default initialize Publisher only
|
|
m_ddsConnector->initPublisher();
|
|
|
|
// Pacemaker
|
|
m_pacemaker = std::make_shared<Core::Pacemaker>(m_ddsConnector);
|
|
|
|
return true;
|
|
} // end of init()
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
} // Namespace DifferentialGPS
|