Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
Executable
+26
@@ -0,0 +1,26 @@
|
||||
/**
|
||||
* Common functions for Publisher and Subscriber
|
||||
* $Id$
|
||||
* $HeadURL$
|
||||
* $Author$
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
namespace DDSConnector
|
||||
{
|
||||
template<typename P>
|
||||
void PubSubBase::updatePartitionQoS(P &pubSub)
|
||||
{
|
||||
if (pubSub == nullptr)
|
||||
return;
|
||||
|
||||
auto publisherQos = pubSub.qos();
|
||||
|
||||
// use only selected partition
|
||||
dds::core::policy::Partition partitionQos;
|
||||
partitionQos.name( m_partitions );
|
||||
publisherQos << partitionQos;
|
||||
|
||||
pubSub.qos(publisherQos);
|
||||
}
|
||||
} // namespace DDSConnector
|
||||
Reference in new issue
Block a user