37 std::string msg) noexcept;
48 int id() const noexcept override;
Event message types visitor interface (double dispatcher)
Definition: event_visitor.h:10
const std::string model_action_str(const ModelAction action)
Converts enumeration to string, not pretty but no support in C++.
Definition: info_message.cpp:33
Top-level namespace for Health-GPS C++ API.
Definition: analysis_definition.h:8
ModelAction
Enumerates simulation model actions.
Definition: info_message.h:7
@ update
Simulation time has updated, time = time + 1.
@ start
Simulation has started, time = start.
@ stop
Simulation has stopped, time = end.
Global namespace.
Definition: jsonparser.h:88
Simulation event messages interface.
Definition: event_message.h:25
Implements the simulation information event message data type.
Definition: info_message.h:19
const std::string message
Gets the notification message.
Definition: info_message.h:46
const ModelAction model_action
Gets the source action value.
Definition: info_message.h:40
int id() const noexcept override
Gets the unique message type identifier.
Definition: info_message.cpp:14
void accept(EventMessageVisitor &visitor) const override
Double dispatch the message using a visitor implementation.
Definition: info_message.cpp:29
InfoEventMessage()=delete
const int model_time
Gets the associated Simulation time.
Definition: info_message.h:43
std::string to_string() const override
Create a string representation of this instance.
Definition: info_message.cpp:16