#include <event.hpp>
Definition at line 255 of file event.hpp.
◆ Manager() [1/3]
Event::Manager::Manager | ( | | ) | |
◆ Manager() [2/3]
Event::Manager::Manager | ( | const Manager & | manager | ) | |
| delete |
◆ Manager() [3/3]
Event::Manager::Manager | ( | Manager && | | ) | |
| delete |
◆ ~Manager()
Event::Manager::~Manager | ( | | ) | |
◆ getLogger()
Returns a pointer to the event logger
The event manager class also logs all messages being passed around in RTXI and sends them to standard output. These logs are automatically generated in the event processor thread, and the only other part of the system that requires access to the logger is the telemitry processor, which will also log all telemitry received by RTXI from the RT::System class in the realtime thread.
- Returns
- Raw pointer to eventLogger class
- See also
- RT::System::getTelemitry
Definition at line 333 of file event.hpp.
◆ isRegistered()
Checks Whether the handler is registered
- Parameters
handler | Pointer to handler to check registration |
- Returns
- True if handler is registered, false otherwise.
Definition at line 356 of file event.cpp.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ postEvent() [1/2]
Function for posting an event to be signaled.
The event manager will take the object and route it to all event handlers registered. This is done by passing the event through a thread-safe queue, which is then processed by event handler workers. This is synchronous, meaning that it blocks until all event handlers return. In addition, the event manager automatically marks the event as done right before returning.This function should only be called from non-realtime.
- Parameters
event | The event to be posted. |
- See also
- Event::Handler
- Event::Object
Definition at line 299 of file event.cpp.
◆ postEvent() [2/2]
void Event::Manager::postEvent | ( | std::vector< Object > & | events | ) | |
Function for posting multiple events at the same time.
The order at which these events are posted are preserved. This is more efficient for situations where multiple events can be generated from a single action(loading multiple plugins, loading settings file that changes many parameters, unregister module, etc.). Will block until all events are processed.
- Parameters
events | A vector of events that will be published |
Definition at line 315 of file event.cpp.
◆ registerHandler()
Registers handler in the registry
- Parameters
handler | pointer of handler to add to registry |
Definition at line 336 of file event.cpp.
◆ unregisterHandler()
Removes handler from registry
- Parameters
handler | pointer of handler to remove from registry |
Definition at line 346 of file event.cpp.
The documentation for this class was generated from the following files: