SEEventManager Class Reference
#include <SEEventManager.h>
Inherits Loggable.
Public Member Functions | |
SEEventManager (Logger *logger) | |
virtual | ~SEEventManager () |
void | Clear () |
virtual void | OverrideActiveState (eEvent state, const SEScalarTime &duration) |
virtual const std::map< eEvent, bool > & | GetEventStates () const |
virtual void | SetEvent (eEvent e, bool active, const SEScalarTime &time) |
virtual bool | IsEventActive (eEvent e) const |
virtual double | GetEventDuration (eEvent e, const TimeUnit &unit) const |
virtual void | UpdateEvents (const SEScalarTime &timeStep) |
virtual bool | GetActiveEvents (std::vector< const SEActiveEvent * > &active) const |
Public Member Functions inherited from Loggable | |
Loggable (Logger *logger=nullptr) | |
Loggable (std::string const &logfile) | |
virtual | ~Loggable () |
virtual Logger * | GetLogger () const |
virtual void | SetLogger (Logger &logger) |
virtual void | Debug (std::string const &msg) const |
virtual void | Debug (std::stringstream &msg) const |
virtual void | Debug (std::ostream &msg) const |
virtual void | Info (std::string const &msg) const |
virtual void | Info (std::stringstream &msg) const |
virtual void | Info (const std::stringstream &msg) const |
virtual void | Info (std::ostream &msg) const |
virtual void | Warning (std::string const &msg) const |
virtual void | Warning (std::stringstream &msg) const |
virtual void | Warning (std::ostream &msg) const |
virtual void | Error (std::string const &msg) const |
virtual void | Error (std::stringstream &msg) const |
virtual void | Error (std::ostream &msg) const |
virtual void | Fatal (std::string const &msg) const |
virtual void | Fatal (std::stringstream &msg) const |
virtual void | Fatal (std::ostream &msg) const |
ForwardEvents | |
| |
std::stringstream | m_ss |
SEEventHandler * | m_EventHandler |
std::map< eEvent, bool > | m_EventState |
std::map< eEvent, double > | m_EventDuration_s |
virtual void | ForwardEvents (SEEventHandler *handler) const |
virtual SEEventHandler * | GetEventHandler () |
Additional Inherited Members | |
Protected Attributes inherited from Loggable | |
bool | myLogger |
Logger * | m_Logger |
Constructor & Destructor Documentation
◆ SEEventManager()
SEEventManager::SEEventManager | ( | Logger * | logger | ) |
◆ ~SEEventManager()
|
virtual |
Member Function Documentation
◆ Clear()
void SEEventManager::Clear | ( | ) |
◆ ForwardEvents()
|
virtual |
◆ GetActiveEvents()
|
virtual |
◆ GetEventDuration()
|
virtual |
◆ GetEventHandler()
|
inlinevirtual |
◆ GetEventStates()
|
inlinevirtual |
◆ IsEventActive()
|
virtual |
◆ OverrideActiveState()
|
virtual |
◆ SetEvent()
|
virtual |
◆ UpdateEvents()
|
virtual |
Member Data Documentation
◆ m_EventDuration_s
|
protected |
◆ m_EventHandler
|
mutableprotected |
◆ m_EventState
|
protected |
◆ m_ss
|
protected |