Tool Libs
UMIT-TIROL Institute of Automation and Control Engineering library collection
 
Loading...
Searching...
No Matches
FrameRegistry Struct Reference

Registry for dispatching frames to their registered destinations. More...

#include <frameregistry.h>

Collaboration diagram for FrameRegistry:
[legend]

Classes

struct  FrameHandler
 Virtual Base for a callable Frame handler. More...
 
struct  FuncHandler
 pure function FrameHandler More...
 
struct  MethodHandler
 class method FrameHandler More...
 

Public Member Functions

void setHandler (uint8_t id, FuncHandler::Func f)
 register pure function FrameHandler for given id
 
template<typename T >
void setHandler (uint8_t id, T &base, typename MethodHandler< T >::Method method)
 register class method FrameHandler for given id
 
void handle (Frame &&f)
 handle given Frame and consume it
 

Public Attributes

FrameHandlerlist [64] {}
 list of registered handlers
 

Detailed Description

Registry for dispatching frames to their registered destinations.

Member Function Documentation

◆ handle()

void FrameRegistry::handle ( Frame &&  f)
inline

handle given Frame and consume it

you potentially have to call .handle(std::move(frame)) to have the compiler let you do this.


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