Goby3  3.1.4
2024.02.22
goby::middleware::SerializationSubscriptionRegex Class Reference

Represents a regex subscription to a serialized data type (interprocess and outer layers). More...

#include <goby/middleware/transport/serialization_handlers.h>

Public Types

typedef std::function< void(const std::vector< unsigned char > &, int scheme, const std::string &type, const Group &group)> HandlerType
 

Public Member Functions

 SerializationSubscriptionRegex (HandlerType handler, const std::set< int > &schemes, const std::string &type_regex=".*", const std::string &group_regex=".*")
 
void update_type_regex (const std::string &type_regex)
 
void update_group_regex (const std::string &group_regex)
 
template<typename CharIterator >
bool post (CharIterator bytes_begin, CharIterator bytes_end, int scheme, const std::string &type, const std::string &group) const
 
std::thread::id thread_id () const
 
std::string subscriber_id () const
 

Detailed Description

Represents a regex subscription to a serialized data type (interprocess and outer layers).

Definition at line 393 of file serialization_handlers.h.

Member Typedef Documentation

◆ HandlerType

typedef std::function<void(const std::vector<unsigned char>&, int scheme, const std::string& type, const Group& group)> goby::middleware::SerializationSubscriptionRegex::HandlerType

Definition at line 398 of file serialization_handlers.h.

Constructor & Destructor Documentation

◆ SerializationSubscriptionRegex()

goby::middleware::SerializationSubscriptionRegex::SerializationSubscriptionRegex ( HandlerType  handler,
const std::set< int > &  schemes,
const std::string &  type_regex = ".*",
const std::string &  group_regex = ".*" 
)
inline

Definition at line 400 of file serialization_handlers.h.

Member Function Documentation

◆ post()

template<typename CharIterator >
bool goby::middleware::SerializationSubscriptionRegex::post ( CharIterator  bytes_begin,
CharIterator  bytes_end,
int  scheme,
const std::string &  type,
const std::string &  group 
) const
inline

Definition at line 413 of file serialization_handlers.h.

◆ subscriber_id()

std::string goby::middleware::SerializationSubscriptionRegex::subscriber_id ( ) const
inline

Definition at line 431 of file serialization_handlers.h.

◆ thread_id()

std::thread::id goby::middleware::SerializationSubscriptionRegex::thread_id ( ) const
inline

Definition at line 430 of file serialization_handlers.h.

◆ update_group_regex()

void goby::middleware::SerializationSubscriptionRegex::update_group_regex ( const std::string &  group_regex)
inline

Definition at line 408 of file serialization_handlers.h.

◆ update_type_regex()

void goby::middleware::SerializationSubscriptionRegex::update_type_regex ( const std::string &  type_regex)
inline

Definition at line 407 of file serialization_handlers.h.


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