Overload  1.1
Game engine with editor
Public Member Functions | List of all members
OvUI::Plugins::DataDispatcher< T > Class Template Reference

#include <DataDispatcher.h>

Inheritance diagram for OvUI::Plugins::DataDispatcher< T >:
OvUI::Plugins::IPlugin

Public Member Functions

void RegisterReference (T &p_reference)
 
void RegisterProvider (std::function< void(T)> p_provider)
 
void RegisterGatherer (std::function< T(void)> p_gatherer)
 
void Provide (T p_data)
 
void NotifyChange ()
 
Gather ()
 
virtual void Execute () override
 

Additional Inherited Members

- Public Attributes inherited from OvUI::Plugins::IPlugin
void * userData = nullptr
 

Detailed Description

template<typename T>
class OvUI::Plugins::DataDispatcher< T >

Plugin that allow automatic data update of any DataWidget

Member Function Documentation

◆ Execute()

template<typename T>
virtual void OvUI::Plugins::DataDispatcher< T >::Execute ( )
inlineoverridevirtual

Execute the data dispatcher behaviour (No effect)

Implements OvUI::Plugins::IPlugin.

◆ Gather()

template<typename T>
T OvUI::Plugins::DataDispatcher< T >::Gather ( )
inline

Returns the data from the dispatcher

◆ NotifyChange()

template<typename T>
void OvUI::Plugins::DataDispatcher< T >::NotifyChange ( )
inline

Notify that a change occured

◆ Provide()

template<typename T>
void OvUI::Plugins::DataDispatcher< T >::Provide ( p_data)
inline

Provide data to the dispatcher

Parameters
p_data

◆ RegisterGatherer()

template<typename T>
void OvUI::Plugins::DataDispatcher< T >::RegisterGatherer ( std::function< T(void)>  p_gatherer)
inline

Register a gather (Which function should be called when the widget data needs to be updated)

Parameters
p_provider

◆ RegisterProvider()

template<typename T>
void OvUI::Plugins::DataDispatcher< T >::RegisterProvider ( std::function< void(T)>  p_provider)
inline

Register a provider (Which function should be called when the widget data is modified)

Parameters
p_provider

◆ RegisterReference()

template<typename T>
void OvUI::Plugins::DataDispatcher< T >::RegisterReference ( T &  p_reference)
inline

Register a reference

Parameters
p_reference

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