Implements the simulation information event message data type.
More...
#include <info_message.h>
Implements the simulation information event message data type.
◆ InfoEventMessage() [1/3]
| hgps::InfoEventMessage::InfoEventMessage |
( |
| ) |
|
|
delete |
◆ InfoEventMessage() [2/3]
| hgps::InfoEventMessage::InfoEventMessage |
( |
std::string |
sender, |
|
|
ModelAction |
action, |
|
|
unsigned int |
run, |
|
|
int |
time |
|
) |
| |
|
noexcept |
Initialises a new instance of the ErrorEventMessage structure.
- Parameters
-
| sender | The sender identifier |
| action | Source action identification |
| run | Current simulation run number |
| time | Current simulation time |
◆ InfoEventMessage() [3/3]
| hgps::InfoEventMessage::InfoEventMessage |
( |
std::string |
sender, |
|
|
ModelAction |
action, |
|
|
unsigned int |
run, |
|
|
int |
time, |
|
|
std::string |
msg |
|
) |
| |
|
noexcept |
Initialises a new instance of the ErrorEventMessage structure.
- Parameters
-
| sender | The sender identifier |
| action | Source action identification |
| run | Current simulation run number |
| time | Current simulation time |
| msg | The notification message |
◆ accept()
Double dispatch the message using a visitor implementation.
- Parameters
-
| visitor | The event message instance to accept |
Implements hgps::EventMessage.
◆ id()
| int hgps::InfoEventMessage::id |
( |
| ) |
const |
|
overridevirtualnoexcept |
Gets the unique message type identifier.
- Returns
- The message type identifier
Implements hgps::EventMessage.
◆ to_string()
| std::string hgps::InfoEventMessage::to_string |
( |
| ) |
const |
|
overridevirtual |
Create a string representation of this instance.
- Returns
- The string representation
Implements hgps::EventMessage.
◆ message
| const std::string hgps::InfoEventMessage::message |
Gets the notification message.
◆ model_action
| const ModelAction hgps::InfoEventMessage::model_action {} |
Gets the source action value.
◆ model_time
| const int hgps::InfoEventMessage::model_time {} |
The documentation for this struct was generated from the following files: