COOLFluiD
Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
|
#include <EventHandler.hpp>
Inherits SignalHandler, and noncopyable.
Public Member Functions | |
~EventHandler () | |
Destructor. More... | |
template<typename PTYPE , typename FTYPE > | |
Signal * | connect_to_event (const std::string &sname, PTYPE *ptr, FTYPE pfunc) |
Regists a signal on this EventHandler. More... | |
void | raise_event (const std::string &ename, SignalArgs &args) |
raises an event and dispatches immedietly to all listeners More... | |
Public Member Functions inherited from SignalHandler | |
~SignalHandler () | |
const storage_t & | signal_list () const |
SignalPtr | signal (const SignalID &sname) |
SignalCPtr | signal (const SignalID &sname) const |
SignalRet | call_signal (const SignalID &sname, SignalArgs &sinput) |
Calls the signal by providing its name and input. More... | |
SignalRet | call_signal (const SignalID &sname, std::vector< std::string > &sinput) |
Calls the signal by providing its name and input. More... | |
bool | signal_exists (const SignalID &sname) const |
Checks if a signal exists or not. More... | |
Signal & | regist_signal (const SignalID &sname) |
Regist signal. More... | |
void | unregist_signal (const SignalID &sname) |
Unregist signal. More... | |
Static Public Member Functions | |
static EventHandler & | instance () |
Private Member Functions | |
EventHandler () | |
Constructor. More... | |
Additional Inherited Members | |
Public Types inherited from SignalHandler | |
typedef std::vector< SignalPtr > | storage_t |
storage type for signals More... | |
Public Attributes inherited from SignalHandler | |
storage_t | m_signals |
storage of the signals More... | |
Global Event Handler class
Definition at line 25 of file EventHandler.hpp.
~EventHandler | ( | ) |
Destructor.
Definition at line 26 of file EventHandler.cpp.
|
private |
Constructor.
Definition at line 23 of file EventHandler.cpp.
|
inline |
Regists a signal on this EventHandler.
Definition at line 38 of file EventHandler.hpp.
|
static |
Definition at line 16 of file EventHandler.cpp.
void raise_event | ( | const std::string & | ename, |
SignalArgs & | args | ||
) |
raises an event and dispatches immedietly to all listeners
Definition at line 29 of file EventHandler.cpp.
Send comments to: COOLFluiD Web Admin |