Reduce qt6-after tree to release validation scope
Kept: TetraIF/, Z/src, Lts/Common, Lts/Proxies/TrainingAreaBase (tabTelegrams dependency of TetraIF) plus build scaffolding (cmake/, include/, external/, doxygen/, tests/, translations/, lts-cc.conf, CTestCustom.ctest, new_docker_build.sh, rti_license.dat). Removed: out-of-scope Lts modules (Application, DDS, Plugins, Projects, Services, Tools, Viewer, all Proxies except TrainingAreaBase), top-level src/, specs/, Qt5 tree (qt5-before + .gitmodules entry), migration reports and leftover scripts.
This commit is contained in:
1 parent
1a38b88229
commit
e4743d631d
12095 files changed
-2345836
No files matched your search
@@ -1,74 +0,0 @@
|
||||
|
||||
|
||||
|
||||
#include "subscriber.h"
|
||||
#include "pub_sub_base_p.h"
|
||||
|
||||
#include <Lts/DDS/QosProfile/DDS_DefaultQos.h>
|
||||
#include <NGLLogger/INGLLogger.h>
|
||||
|
||||
namespace DDSConnector
|
||||
{
|
||||
Subscriber::Subscriber(const dds::domain::DomainParticipant &domainParticipant, const std::string &partition, bool bUseSubscriberListener)
|
||||
: PubSubBase(domainParticipant, partition, "DDSConnector.Subscriber")
|
||||
, m_ddsSubscriber(nullptr)
|
||||
, m_subscriberListener(bUseSubscriberListener ? new DDSGeneric::SubscriberListener : nullptr)
|
||||
, m_subscriberListenerBinder(nullptr)
|
||||
{
|
||||
Q_ASSERT(domainParticipant != nullptr);
|
||||
initDDS();
|
||||
}
|
||||
|
||||
Subscriber::~Subscriber()
|
||||
{
|
||||
try
|
||||
{
|
||||
deleteDDS();
|
||||
} catch (...)
|
||||
{}
|
||||
}
|
||||
|
||||
void Subscriber::initDDS()
|
||||
{
|
||||
if (m_partitions.empty())
|
||||
return;
|
||||
|
||||
|
||||
if (m_logger.isDebugEnabled()) {
|
||||
DEBUG_LOG(m_logger) << "Subscriber (DataReader) Qos: ";
|
||||
dds::core::QosProvider qosProvider = dds::core::QosProvider::Default();
|
||||
DDS::QosProfile::print(qosProvider.datareader_qos(), m_logger);
|
||||
}
|
||||
|
||||
dds::sub::qos::SubscriberQos subscriberQos = m_domainParticipant.default_subscriber_qos();
|
||||
|
||||
|
||||
rti::core::policy::EntityName entityName;
|
||||
entityName.name(std::string("Sub ") + m_partitions.front());
|
||||
subscriberQos << entityName;
|
||||
|
||||
DEBUG_LOG(m_logger) << "Subscribe on partition " << m_partitions.front();
|
||||
|
||||
m_ddsSubscriber = dds::sub::Subscriber(m_domainParticipant,
|
||||
subscriberQos);
|
||||
|
||||
if (m_subscriberListener)
|
||||
m_subscriberListenerBinder = rti::core::bind_and_manage_listener(m_ddsSubscriber,
|
||||
m_subscriberListener,
|
||||
DDSGeneric::SubscriberListener::mask());
|
||||
|
||||
updatePartitionQoS(m_ddsSubscriber);
|
||||
}
|
||||
|
||||
void Subscriber::deleteDDS()
|
||||
{
|
||||
if (m_subscriberListener)
|
||||
{
|
||||
m_subscriberListener->prepareShutdown();
|
||||
m_subscriberListener = nullptr;
|
||||
}
|
||||
m_subscriberListenerBinder = nullptr;
|
||||
m_ddsSubscriber = nullptr;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user