Skip to content

Commit f882dca

Browse files
add default constructor for qos; update docs
1 parent a470412 commit f882dca

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

include/zenohcxx/api.hxx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,17 +143,18 @@ typedef ::z_congestion_control_t CongestionControl;
143143
/// - **Z_PRIORITY_BACKGROUND**: Priority for "background traffic" messages.
144144
typedef ::z_priority_t Priority;
145145

146-
/**
147-
* QoS settings of zenoh message.
148-
*/
146+
/// QoS settings of zenoh message.
147+
///
149148
struct QoS : public Copyable<::z_qos_t> {
150149
using Copyable::Copyable;
151-
/// Returns message priority.
150+
/// @brief Returns message priority.
152151
Priority get_priority() const { return ::z_qos_get_priority(*this); }
153-
/// Returns message congestion control.
152+
/// @brief Returns message congestion control.
154153
CongestionControl get_congestion_control() const { return ::z_qos_get_congestion_control(*this); }
155-
/// Returns message express flag. If set to true, the message is not batched to reduce the latency.
154+
/// @brief Returns message express flag. If set to true, the message is not batched to reduce the latency.
156155
bool get_express() const { return ::z_qos_get_express(*this); }
156+
/// @brief Crates default QoS settings.
157+
QoS() : Copyable(z_qos_default()) {};
157158
};
158159

159160
/// Query target values.

0 commit comments

Comments
 (0)