Robot Raconteur Core C++ Library
Loading...
Searching...
No Matches
RobotRaconteur::ServiceSubscriptionFilter Class Reference

Subscription filter. More...

#include <Subscription.h>

Public Attributes

std::vector< boost::shared_ptr< ServiceSubscriptionFilterNode > > Nodes
std::vector< std::string > ServiceNames
std::vector< std::string > TransportSchemes
std::map< std::string, ServiceSubscriptionFilterAttributeGroupAttributes
ServiceSubscriptionFilterAttributeGroupOperation AttributesMatchOperation
boost::function< bool(const ServiceInfo2 &)> Predicate
uint32_t MaxConnections

Detailed Description

Subscription filter.

The subscription filter is used with RobotRaconteurNode::SubscribeServiceByType() and RobotRaconteurNode::SubscribeServiceInfo2() to decide which services should be connected. Detected services that match the service type are checked against the filter before connecting.

Member Data Documentation

◆ Attributes

std::map<std::string, ServiceSubscriptionFilterAttributeGroup> RobotRaconteur::ServiceSubscriptionFilter::Attributes

Attributes to match

◆ AttributesMatchOperation

ServiceSubscriptionFilterAttributeGroupOperation RobotRaconteur::ServiceSubscriptionFilter::AttributesMatchOperation

Operation to use to match attributes. Defaults to AND

◆ MaxConnections

uint32_t RobotRaconteur::ServiceSubscriptionFilter::MaxConnections

The maximum number of connections the subscription will create. Zero means unlimited connections.

◆ Nodes

std::vector<boost::shared_ptr<ServiceSubscriptionFilterNode> > RobotRaconteur::ServiceSubscriptionFilter::Nodes

Vector of nodes that should be connected. Empty means match any node.

◆ Predicate

boost::function<bool(const ServiceInfo2&)> RobotRaconteur::ServiceSubscriptionFilter::Predicate

A user specified predicate function. If nullptr, the predicate is not checked.

◆ ServiceNames

std::vector<std::string> RobotRaconteur::ServiceSubscriptionFilter::ServiceNames

Vector service names that should be connected. Empty means match any service name.

◆ TransportSchemes

std::vector<std::string> RobotRaconteur::ServiceSubscriptionFilter::TransportSchemes

Vector of transport schemes. Empty means match any transport scheme.


The documentation for this class was generated from the following file: