Options
The classes representing the options passed to the API
-
struct QueryConsolidation : public zenohcxx::Copyable<::z_query_consolidation_t>
Replies consolidation mode to apply on replies of get operation.
Constructors
-
inline QueryConsolidation()
Create a new default
QueryConsolidationvalue.
-
inline QueryConsolidation(ConsolidationMode v)
Create a new
QueryConsolidationvalue with the given consolidation mode.- Parameters:
v –
zenoh::ConsolidationModevalue
Methods
-
inline QueryConsolidation &set_mode(ConsolidationMode v)
Set the consolidation mode.
- Parameters:
v –
zenoh::ConsolidationModevalue
-
inline ConsolidationMode get_mode() const
The consolidation mode.
- Returns:
zenoh::ConsolidationModevalue
Operators
-
inline bool operator==(const QueryConsolidation &v) const
Equality operator.
- Parameters:
v – the other
QueryConsolidationto compare with- Returns:
true if the two values are equal (have the same consolidation mode)
-
inline bool operator!=(const QueryConsolidation &v) const
Inequality operator.
- Parameters:
v – the other
QueryConsolidationto compare with- Returns:
true if the two values are not equal (have different consolidation mode)
-
inline QueryConsolidation()
-
struct GetOptions : public zenohcxx::Copyable<::z_get_options_t>
Options passed to the get operation.
Constructors
-
inline GetOptions()
Create a new default
GetOptionsvalue.
Methods
-
inline GetOptions &set_target(QueryTarget v)
Set the target of the get operation.
- Parameters:
v –
zenoh::QueryTargetvalue- Returns:
reference to the structure itself
-
inline GetOptions &set_consolidation(zenoh::QueryConsolidation v)
Set the consolidation mode to apply on replies of get operation.
- Parameters:
v –
QueryConsolidationvalue- Returns:
reference to the structure itself
-
inline GetOptions &set_value(zenoh::Value v)
Set an optional value to attach to the query.
- Parameters:
v –
Valuevalue- Returns:
reference to the structure itself
-
inline QueryTarget get_target() const
The target of the get operation.
- Returns:
zenoh::QueryTargetvalue
-
inline const zenoh::QueryConsolidation &get_consolidation() const
The consolidation mode to apply on replies of get operation.
- Returns:
QueryConsolidationvalue
-
inline const zenoh::Value &get_value() const
The optional value to attach to the query.
- Returns:
Valuevalue
-
inline GetOptions &set_timeout_ms(uint64_t ms)
Set the timeout for the query operation.
- Parameters:
v – timeout in milliseconds. 0 means default query timeout from zenoh configuration.
- Returns:
reference to the structure itself
Note
zenoh-c only
-
inline uint64_t get_timeout_ms() const
The timeout for the query operation.
- Returns:
timeout in milliseconds. 0 means default query timeout from zenoh configuration.
Note
zenoh-c only
-
inline const zenoh::AttachmentView &get_attachment() const
Get the attachment.
- Returns:
zenoh::AttachmentViewvalue
-
inline GetOptions &set_attachment(const zenoh::AttachmentView &a)
Set the attachment.
- Parameters:
a – the
zenoh::AttachmentViewvalue- Returns:
reference to the structure itself
Operators
-
inline bool operator==(const GetOptions &v) const
Equality operator.
- Parameters:
v – the other
GetOptionsto compare with- Returns:
true if the two values are equal (have the same target, consolidation mode and optional value)
-
inline bool operator!=(const GetOptions &v) const
Inequality operator.
- Parameters:
v – the other
GetOptionsto compare with- Returns:
true if the two values are not equal (have different target, consolidation mode or optional value)
-
inline GetOptions()
-
struct PutOptions : public zenohcxx::Copyable<::z_put_options_t>
Options passed to the put operation.
Constructors
-
inline PutOptions()
Create a new default
PutOptionsvalue.
Methods
-
inline const zenoh::Encoding &get_encoding() const
Get the encoding of the payload.
- Returns:
zenoh::Encodingvalue
-
inline PutOptions &set_encoding(zenoh::Encoding e)
Set the encoding for the payload.
- Parameters:
e –
zenoh::Encodingvalue- Returns:
reference to the structure itself
-
inline CongestionControl get_congestion_control() const
Get the congestion control mode.
- Returns:
zenoh::CongestionControlvalue
-
inline PutOptions &set_congestion_control(CongestionControl v)
Set the congestion control mode.
- Parameters:
v –
zenoh::CongestionControlvalue- Returns:
reference to the structure itself
-
inline Priority get_priority() const
Get the priority of the operation.
- Returns:
zenoh::Priorityvalue
-
inline PutOptions &set_priority(Priority v)
Set the priority of the operation.
- Parameters:
v –
zenoh::Priorityvalue- Returns:
reference to the structure itself
-
inline const zenoh::AttachmentView &get_attachment() const
Get the attachment.
- Returns:
zenoh::AttachmentViewvalue
-
inline PutOptions &set_attachment(const zenoh::AttachmentView &a)
Set the attachment.
- Parameters:
a – the
zenoh::AttachmentViewvalue- Returns:
reference to the structure itself
Operators
-
inline bool operator==(const PutOptions &v) const
Equality operator.
- Parameters:
v – the other
PutOptionsto compare with- Returns:
true if the two values are equal (have the same priority, congestion control mode and encoding)
-
inline bool operator!=(const PutOptions &v) const
Inequality operator.
- Parameters:
v – the other
PutOptionsto compare with- Returns:
true if the two values are not equal (have different priority, congestion control mode or encoding)
-
inline PutOptions()
-
struct DeleteOptions : public zenohcxx::Copyable<::z_delete_options_t>
Options passed to the delete operation.
Constructors
-
inline DeleteOptions()
Create a new default
DeleteOptionsvalue.
Methods
-
inline CongestionControl get_congestion_control() const
Get the congestion control mode.
- Returns:
zenoh::CongestionControlvalue
-
inline DeleteOptions &set_congestion_control(CongestionControl v)
Set the congestion control mode.
- Parameters:
v –
zenoh::CongestionControlvalue- Returns:
reference to the structure itself
-
inline Priority get_priority() const
Get the priority of the operation.
- Returns:
zenoh::Priorityvalue
-
inline DeleteOptions &set_priority(Priority v)
Set the priority of the operation.
- Parameters:
v –
zenoh::Priorityvalue- Returns:
reference to the structure itself
Operators
-
inline bool operator==(const DeleteOptions &v) const
Equality operator.
- Parameters:
v – the other
DeleteOptionsto compare with- Returns:
true if the two values are equal (have the same priority and congestion control)
-
inline bool operator!=(const DeleteOptions &v) const
Inequality operator.
- Parameters:
v – the other
DeleteOptionsto compare with- Returns:
true if the two values are not equal (have different priority or congestion control)
-
inline DeleteOptions()
-
struct QueryReplyOptions : public zenohcxx::Copyable<::z_query_reply_options_t>
Options passed to the
Query::replyoperation.Constructors
-
inline QueryReplyOptions()
Create a new default
QueryReplyOptionsvalue.
Methods
-
inline const zenoh::Encoding &get_encoding() const
Get the encoding of the payload.
- Returns:
zenoh::Encodingvalue
-
inline QueryReplyOptions &set_encoding(zenoh::Encoding e)
Set the encoding for the payload.
- Parameters:
e –
zenoh::Encodingvalue- Returns:
reference to the structure itself
-
inline const zenoh::AttachmentView &get_attachment() const
Get the attachment.
- Returns:
zenoh::AttachmentViewvalue
-
inline QueryReplyOptions &set_attachment(const zenoh::AttachmentView &a)
Set the attachment.
- Parameters:
a – the
zenoh::AttachmentViewvalue- Returns:
reference to the structure itself
Operators
-
inline bool operator==(const QueryReplyOptions &v) const
Equality operator.
- Parameters:
v – the other
QueryReplyOptionsto compare with- Returns:
true if the two values are equal (have the same encoding)
-
inline bool operator!=(const QueryReplyOptions &v) const
Inequality operator.
- Parameters:
v – the other
QueryReplyOptionsto compare with- Returns:
true if the two values are not equal (have different encoding)
-
inline QueryReplyOptions()
-
struct QueryableOptions : public zenohcxx::Copyable<::z_queryable_options_t>
Options to be passed when declaring a
QueryableConstructors
-
inline QueryableOptions()
Create a new default
QueryableOptionsvalue.
Methods
-
inline bool get_complete() const
Get the completeness of the queryable A queryable is defined as complete if it can serve any query “completely” related to the key expression on which it serves. The querier will not benefit from extra information from any other queryable.
- Returns:
true if the queryable is complete
-
inline QueryableOptions &set_complete(bool v)
Set the completeness of the queryable.
- Parameters:
v – true if the queryable is complete
- Returns:
reference to the structure itself
Operators
-
inline bool operator==(const QueryableOptions &v) const
Equality operator.
- Parameters:
v – the other
QueryableOptionsto compare with- Returns:
true if the two values are equal (have the same completeness)
-
inline bool operator!=(const QueryableOptions &v) const
Inequality operator.
- Parameters:
v – the other
QueryableOptionsto compare with- Returns:
true if the two values are not equal (have different completeness)
-
inline QueryableOptions()
-
struct SubscriberOptions : public zenohcxx::Copyable<::z_subscriber_options_t>
Options to be passed when declaring a
'SubscriberConstructors
-
inline SubscriberOptions()
Create a new default
SubscriberOptionsvalue.
Methods
-
inline Reliability get_reliability() const
Get the reliability of the subscriber.
- Returns:
zenoh::Reliabilityvalue
-
inline SubscriberOptions &set_reliability(Reliability v)
Set the reliability of the subscriber.
- Parameters:
v – the
zenoh::Reliabilityvalue- Returns:
reference to the structure itself
Operators
-
inline bool operator==(const SubscriberOptions &v) const
Equality operator.
- Parameters:
v – the other
SubscriberOptionsto compare with- Returns:
true if the two values are equal (have the same reliability)
-
inline bool operator!=(const SubscriberOptions &v) const
Inequality operator.
- Parameters:
v – the other
SubscriberOptionsto compare with- Returns:
true if the two values are not equal (have different reliability)
-
inline SubscriberOptions()
-
struct PullSubscriberOptions : public zenohcxx::Copyable<::z_pull_subscriber_options_t>
Options to be passed when declaring a
PullSubscriberConstructors
-
inline PullSubscriberOptions()
Create a new default
PullSubscriberOptionsvalue.
Methods
-
inline Reliability get_reliability() const
Get the reliability of the pull subscriber.
- Returns:
zenoh::Reliabilityvalue
-
inline PullSubscriberOptions &set_reliability(Reliability v)
Set the reliability of the pull subscriber.
- Parameters:
v – the
zenoh::Reliabilityvalue- Returns:
reference to the structure itself
Operators
-
inline bool operator==(const PullSubscriberOptions &v) const
Equality operator.
- Parameters:
v – the other
PullSubscriberOptionsto compare with- Returns:
true if the two values are equal (have the same reliability)
-
inline bool operator!=(const PullSubscriberOptions &v) const
Inequality operator.
- Parameters:
v – the other
PullSubscriberOptionsto compare with- Returns:
true if the two values are not equal (have different reliability)
-
inline PullSubscriberOptions()
-
struct PublisherOptions : public zenohcxx::Copyable<::z_publisher_options_t>
Options to be passed when declaring a
PublisherConstructors
-
inline PublisherOptions()
Create a new default
PublisherOptionsvalue.
Methods
-
inline CongestionControl get_congestion_control() const
Get the congestion control of the publisher.
- Returns:
zenoh::CongestionControlvalue
-
inline PublisherOptions &set_congestion_control(CongestionControl v)
Set the congestion control of the publisher.
- Parameters:
v – the
zenoh::CongestionControlvalue- Returns:
reference to the structure itself
-
inline Priority get_priority() const
Get the priority of the publisher.
- Returns:
zenoh::Priorityvalue
-
inline PublisherOptions &set_priority(Priority v)
Set the priority of the publisher.
- Parameters:
v – the
zenoh::Priorityvalue- Returns:
reference to the structure itself
Operators
-
inline bool operator==(const PublisherOptions &v) const
Equality operator.
- Parameters:
v – the other
PublisherOptionsto compare with- Returns:
true if the two values are equal (have the same congestion control and priority)
-
inline bool operator!=(const PublisherOptions &v) const
Inequality operator.
- Parameters:
v – the other
PublisherOptionsto compare with- Returns:
true if the two values are not equal (have different congestion control or priority)
-
inline PublisherOptions()
-
struct PublisherPutOptions : public zenohcxx::Copyable<::z_publisher_put_options_t>
Options to be passed to
Publisher::putoperation.Constructors
-
inline PublisherPutOptions()
Create a new default
PublisherPutOptionsvalue.
Methods
-
inline const zenoh::Encoding &get_encoding() const
Get the encoding of the publisher.
- Returns:
zenoh::Encodingvalue
-
inline PublisherPutOptions &set_encoding(zenoh::Encoding e)
Set the encoding of the publisher.
- Parameters:
e – the
zenoh::Encodingvalue- Returns:
reference to the structure itself
-
inline const zenoh::AttachmentView &get_attachment() const
Get the attachment.
- Returns:
zenoh::AttachmentViewvalue
-
inline PublisherPutOptions &set_attachment(const zenoh::AttachmentView &a)
Set the attachment.
- Parameters:
a – the
zenoh::AttachmentViewvalue- Returns:
reference to the structure itself
Operators
-
inline bool operator==(const PublisherPutOptions &v) const
Equality operator.
- Parameters:
v – the other
PublisherPutOptionsto compare with- Returns:
true if the two values are equal (have the same encoding)
-
inline bool operator!=(const PublisherPutOptions &v) const
Inequality operator.
- Parameters:
v – the other
PublisherPutOptionsto compare with- Returns:
true if the two values are not equal (have different encoding)
-
inline PublisherPutOptions()
-
struct PublisherDeleteOptions : public zenohcxx::Copyable<::z_publisher_delete_options_t>
Options to be passed to delete operation of a publisher.
Operators
-
inline bool operator==(const zenoh::PublisherOptions&) const
Equality operator.
- Parameters:
v – the other
PublisherDeleteOptionsto compare with- Returns:
true if the two values are equal
-
inline bool operator!=(const zenoh::PublisherOptions &v) const
Inequality operator.
- Parameters:
v – the other
PublisherDeleteOptionsto compare with- Returns:
true if the two values are not equal
-
inline bool operator==(const zenoh::PublisherOptions&) const