Struct astutedds::dcps::ContentFilterProperty
ClassList > astutedds > dcps > ContentFilterProperty
PID_CONTENT_FILTER_PROPERTY (0x0035) payload. More...
#include <content_filter_property.hpp>
Public Attributes
| Type | Name |
|---|---|
| std::string | content_filtered_topic_name |
| std::vector< std::string > | expression_parameters |
| std::string | filter_class_name |
| std::string | filter_expression |
| std::string | related_topic_name |
Public Functions
| Type | Name |
|---|---|
| std::vector< uint8_t > | serialize () const |
Public Static Functions
| Type | Name |
|---|---|
| std::optional< ContentFilterProperty > | deserialize (const std::vector< uint8_t > & data) |
Detailed Description
Wire format is CDR-LE per the IDL in RTPS 2.5 ยง9.4.2.11:
struct ContentFilterProperty_t {
string<256> contentFilteredTopicName;
string<256> relatedTopicName;
string<256> filterClassName;
string filterExpression;
sequence<string> expressionParameters;
};
Public Attributes Documentation
variable content_filtered_topic_name
std::string astutedds::dcps::ContentFilterProperty::content_filtered_topic_name;
variable expression_parameters
std::vector<std::string> astutedds::dcps::ContentFilterProperty::expression_parameters;
variable filter_class_name
std::string astutedds::dcps::ContentFilterProperty::filter_class_name;
variable filter_expression
std::string astutedds::dcps::ContentFilterProperty::filter_expression;
variable related_topic_name
std::string astutedds::dcps::ContentFilterProperty::related_topic_name;
Public Functions Documentation
function serialize
std::vector< uint8_t > astutedds::dcps::ContentFilterProperty::serialize () const
Emit the raw CDR-LE body used for the PID_CONTENT_FILTER_PROPERTY parameter payload. Result is padded to a 4-byte boundary so the SEDP parameter framer can use size() directly as parameterLength.
Public Static Functions Documentation
function deserialize
static std::optional< ContentFilterProperty > astutedds::dcps::ContentFilterProperty::deserialize (
const std::vector< uint8_t > & data
)
Parse a CDR-LE body. Returns std::nullopt if truncated or malformed. A missing terminating NUL, out-of-bounds length, or implausibly large expressionParameters count all cause a reject.
The documentation for this class was generated from the following file include/astutedds/dcps/content_filter_property.hpp