Adds further ext deps as-is binaries copies from customers env.
Qt6 Migration CI / migrate (push) Canceled after 0s
Qt6 Migration CI / migrate (push) Canceled after 0s
This commit is contained in:
3700 files changed
+2132394
No files matched your search
@@ -0,0 +1,54 @@
|
||||
#pragma once
|
||||
|
||||
#include "ddkit/access/DdsWrap.hpp"
|
||||
|
||||
|
||||
namespace ddkit {
|
||||
namespace access {
|
||||
|
||||
/// @brief wraps dds::pub::qos::DataWriterQos and dds::sub::qos::DataReaderQos
|
||||
/// allows defining an arbitrary list of qos-settings.
|
||||
class QosPattern {
|
||||
|
||||
public:
|
||||
QosPattern();
|
||||
QosPattern get();
|
||||
|
||||
dds::sub::qos::DataReaderQos& qosRead();
|
||||
dds::pub::qos::DataWriterQos& qosWrite();
|
||||
dds::topic::qos::TopicQos& qosTopic();
|
||||
dds::sub::qos::SubscriberQos& qosSub();
|
||||
dds::pub::qos::PublisherQos& qosPub();
|
||||
QosPattern& qosReadWrite();
|
||||
|
||||
template <typename T>
|
||||
QosPattern& operator<<(T const& rhs) {
|
||||
qosRead() << rhs;
|
||||
qosWrite() << rhs;
|
||||
qosTopic() << rhs;
|
||||
return *this;
|
||||
}
|
||||
|
||||
private:
|
||||
dds::sub::qos::DataReaderQos m_dataReaderQos;
|
||||
dds::pub::qos::DataWriterQos m_dataWriterQos;
|
||||
dds::topic::qos::TopicQos m_topicQos;
|
||||
dds::sub::qos::SubscriberQos m_subscriberQos;
|
||||
dds::pub::qos::PublisherQos m_publisherQos;
|
||||
};
|
||||
|
||||
|
||||
class QosPatternDefault : public QosPattern {
|
||||
|
||||
public:
|
||||
QosPatternDefault() {
|
||||
using namespace dds::core::policy;
|
||||
qosReadWrite() << Ownership(OwnershipKind::SHARED)
|
||||
<< Reliability(ReliabilityKind::RELIABLE)
|
||||
<< Durability(DurabilityKind::TRANSIENT_LOCAL);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
} // namespace access
|
||||
} // namespace ddkit
|
||||
Reference in new issue
Block a user