LDA++
Public Member Functions | List of all members
ldaplusplus::events::FunctionEventListener Class Reference

#include <Events.hpp>

Inheritance diagram for ldaplusplus::events::FunctionEventListener:
ldaplusplus::events::EventListenerInterface

Public Member Functions

 FunctionEventListener (std::function< void(std::shared_ptr< Event >)> listener)
 
void on_event (std::shared_ptr< Event > event) override
 

Detailed Description

Creates an event listener from a function with the same signature.

Member Function Documentation

void ldaplusplus::events::FunctionEventListener::on_event ( std::shared_ptr< Event event)
overridevirtual
Parameters
eventThe received event

Implements ldaplusplus::events::EventListenerInterface.


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