Set of strings that introduces a logical partition among the topics visible by the Publisher and Subscriber.
More...
#include <QosPolicies.hpp>
|
ParameterId_t | Pid |
| Parameter ID.
By default, PID_PAD.
|
|
uint16_t | length |
| Parameter length.
By default, 0.
|
|
bool | hasChanged |
| Boolean that indicates if the Qos has been changed with respect to the default Qos.
|
|
bool | send_always_ |
| Boolean that indicates if the Qos has to be sent even if it is not changed.
|
|
Set of strings that introduces a logical partition among the topics visible by the Publisher and Subscriber.
A DataWriter within a Publisher only communicates with a DataReader in a Subscriber if (in addition to matching the Topic and having compatible QoS) the Publisher and Subscriber have a common partition name string.
The empty string ("") is considered a valid partition that is matched with other partition names using the same rules of string matching and regular-expression matching used for any other partition name.
- Note
- Mutable Qos Policy
◆ PartitionQosPolicy() [1/3]
Constructor without parameters.
◆ PartitionQosPolicy() [2/3]
Constructor using Parameter length.
- Parameters
-
in_length | Length of the parameter |
◆ PartitionQosPolicy() [3/3]
Copy constructor.
- Parameters
-
◆ ~PartitionQosPolicy()
◆ begin()
Getter for the first position of the partition list.
- Returns
- const_iterator
◆ clear()
FASTDDS_EXPORTED_API void clear |
( |
| ) |
|
|
inlineoverridevirtual |
Clears list of partition names.
Implements QosPolicy.
◆ empty()
Check if the set is empty.
- Returns
- true if it is empty, false otherwise
◆ end()
◆ getNames()
FASTDDS_EXPORTED_API const std::vector< std::string > getNames |
( |
| ) |
const |
|
inline |
Returns partition names.
- Returns
- Vector of partition name strings.
◆ max_size()
uint32_t max_size |
( |
| ) |
const |
|
inline |
Getter for the maximum size (in bytes)
- Returns
- uint32_t with the maximum size
◆ names() [1/2]
FASTDDS_EXPORTED_API const std::vector< std::string > names |
( |
| ) |
const |
|
inline |
Returns partition names.
- Returns
- Vector of partition name strings.
◆ names() [2/2]
FASTDDS_EXPORTED_API void names |
( |
std::vector< std::string > & |
nam | ) |
|
|
inline |
Overrides partition names.
- Parameters
-
nam | Vector of partition name strings. |
◆ operator=()
◆ operator==()
◆ push_back()
FASTDDS_EXPORTED_API void push_back |
( |
const char * |
name | ) |
|
|
inline |
Appends a name to the list of partition names.
- Parameters
-
◆ set_max_size()
void set_max_size |
( |
uint32_t |
size | ) |
|
|
inline |
Setter for the maximum size reserved for partitions (in bytes)
- Parameters
-
◆ setNames()
FASTDDS_EXPORTED_API void setNames |
( |
std::vector< std::string > & |
nam | ) |
|
|
inline |
Overrides partition names.
- Parameters
-
nam | Vector of partition name strings. |
◆ size()
Getter for the number of partitions.
- Returns
- uint32_t with the size
The documentation for this class was generated from the following file: