Eunomia  0.1.0
A lightweight eBPF-based CloudNative Monitor tool for Container Security and Observability
event_handler_adapter< T1, T2 > Struct Template Referenceabstract

Event handler type switcher. More...

#include <event_handler.h>

Inheritance diagram for event_handler_adapter< T1, T2 >:
Inheritance graph
Collaboration diagram for event_handler_adapter< T1, T2 >:
Collaboration graph

Public Member Functions

virtual ~event_handler_adapter ()=default
 
virtual tracker_event< T1 > adapt (tracker_event< T2 > &e)=0
 
std::shared_ptr< event_handler< T1 > > add_handler (std::shared_ptr< event_handler< T1 >> handler)
 
void do_handle_event (tracker_event< T2 > &e)
 
- Public Member Functions inherited from event_handler_base< T2 >
virtual ~event_handler_base ()=default
 
virtual void handle (tracker_event< T2 > &e)=0
 

Public Attributes

std::shared_ptr< event_handler_base< T2 > > next_handler = nullptr
 

Detailed Description

template<typename T1, typename T2>
struct event_handler_adapter< T1, T2 >

Event handler type switcher.

all switch type event hanlder should inherit from this class

Constructor & Destructor Documentation

◆ ~event_handler_adapter()

template<typename T1 , typename T2 >
virtual event_handler_adapter< T1, T2 >::~event_handler_adapter ( )
virtualdefault

Member Function Documentation

◆ adapt()

template<typename T1 , typename T2 >
virtual tracker_event<T1> event_handler_adapter< T1, T2 >::adapt ( tracker_event< T2 > &  e)
pure virtual
Here is the caller graph for this function:

◆ add_handler()

template<typename T1 , typename T2 >
std::shared_ptr<event_handler<T1> > event_handler_adapter< T1, T2 >::add_handler ( std::shared_ptr< event_handler< T1 >>  handler)
inline

◆ do_handle_event()

template<typename T1 , typename T2 >
void event_handler_adapter< T1, T2 >::do_handle_event ( tracker_event< T2 > &  e)
inlinevirtual

Implements event_handler_base< T2 >.

Here is the call graph for this function:

Member Data Documentation

◆ next_handler

template<typename T1 , typename T2 >
std::shared_ptr<event_handler_base<T2> > event_handler_adapter< T1, T2 >::next_handler = nullptr

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