Major Changes:
- Merged latest Qt5 devel content from dlbo (292 files changed, 7 new dirs)
- Consolidated forward-declarations and include folders
- Removed unneeded modules per Niklas' repo check list
Build System Fixes:
- Fixed CMake VERSION_GREATER syntax in ParticipantManagement/CMakeLists.txt
- Added VLC packages (libvlc-dev, vlc-plugin-base) to docker_build.sh
- Added PostgreSQL dev packages (libpq-dev, postgresql-server-dev-all) to Dockerfile
- Fixed locale warnings (ANSI_X3.4-1968 → C.UTF-8)
- Fixed ArcGIS SDK path warnings when BUILD_ARCGIS=OFF
Code Generation Fixes:
- Fixed IDL enum collisions (PortType→CorePortType/DdsutPortType, PdmEventType)
- Fixed Grantlee template svc_translation.cpp.grantlee:
- Changed {{ idl_enum.name }}_def:: to {{ idl_enum.name }}::
- Fixed .underlying() calls for C++11 scoped enums (enum class)
- Removed generated files from repo (moc_*, *_dtc.h, *_ftc.h)
Validation:
- BUILD_RTI=ON: SUCCESS
- BUILD_RTI=OFF: SUCCESS
- C++17 standard maintained for RTI 7.7 compatibility
- Ubuntu 26.04 Docker environment verified
Remaining Warnings (expected):
- BgViewer, KDChart, KDReports, Poppler-Qt6 not found (optional features)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
55 lines
1.5 KiB
C++
55 lines
1.5 KiB
C++
/**
|
|
* @RDE_HEADER@
|
|
* Unit test for DataTopic Server & Client (DTS & DTC)
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Hanna E. Rathje, SLSE, 2015-07-24
|
|
*/
|
|
|
|
#include <DDS/Generic/generic_base.h>
|
|
#include <DDS/DTC/dtc_subscriber_listener.h>
|
|
|
|
namespace NGL {
|
|
class INGLLogger;
|
|
}
|
|
|
|
class Initialisation
|
|
{
|
|
public:
|
|
Initialisation();
|
|
virtual ~Initialisation();
|
|
|
|
enum PubSub
|
|
{
|
|
USE_PUBLISHER = 1,
|
|
USE_SUBSCRIBER = 2,
|
|
USE_PUB_SUB = 4
|
|
};
|
|
|
|
// Initialisation
|
|
bool initDDS(int domainId, int partitionId, PubSub pubsub = USE_PUBLISHER);
|
|
void cleanupSubscriberListener();
|
|
|
|
dds::domain::DomainParticipant getDomainParticipant() { return m_domainParticipant; }
|
|
dds::domain::DomainParticipant getDomainParticipantSub() { return m_domainParticipantSub != nullptr ? m_domainParticipantSub : m_domainParticipant; }
|
|
dds::pub::Publisher getDDSPublisher() { return m_ddsPublisher; }
|
|
dds::sub::Subscriber getDDSSubscriber() { return m_ddsSubscriber; }
|
|
DTC::SubscriberListener *getSubscriberListener() { return m_subListener; }
|
|
|
|
private:
|
|
dds::domain::DomainParticipant m_domainParticipant;
|
|
dds::domain::DomainParticipant m_domainParticipantSub;
|
|
int m_domainId;
|
|
int m_partitionId;
|
|
dds::pub::Publisher m_ddsPublisher;
|
|
dds::sub::Subscriber m_ddsSubscriber;
|
|
|
|
DTC::SubscriberListener *m_subListener;
|
|
|
|
NGL::INGLLogger &m_logger;
|
|
};
|
|
|
|
|
|
|