|
FinanceSim 0.1.0
Financial Simulation Library
|
Base class for all typed events in the simulation. More...
#include <event.hpp>
Public Member Functions | |
| virtual | ~Event ()=default |
| virtual const char * | type_name () const =0 |
| Returns the type name of this event (for debugging/logging) | |
| SimTime | timestamp () const |
| Time at which this event was generated. | |
| const std::string & | source_id () const |
| Source model ID that generated this event. | |
Protected Member Functions | |
| Event (SimTime timestamp, std::string source_id) | |
Private Attributes | |
| SimTime | timestamp_ |
| std::string | source_id_ |
|
virtualdefault |
|
inlineprotected |
|
inline |
Source model ID that generated this event.
Definition at line 21 of file event.hpp.
References source_id_.
Referenced by financesim::Logger::passes_filters(), PYBIND11_MODULE(), and financesim::JsonWriter::write().
|
inline |
Time at which this event was generated.
Definition at line 18 of file event.hpp.
References timestamp_.
Referenced by PYBIND11_MODULE().
|
pure virtual |
Returns the type name of this event (for debugging/logging)
Implemented in financesim::IncomeEvent, financesim::ExpenseEvent, financesim::AssetEvent, financesim::LiabilityEvent, financesim::AccountEvent, and financesim::TransferEvent.
Referenced by financesim::Logger::passes_filters(), and PYBIND11_MODULE().
|
private |
Definition at line 29 of file event.hpp.
Referenced by source_id().
|
private |
Definition at line 28 of file event.hpp.
Referenced by timestamp().