$darkmode
#include <memory>#include <string>#include <cloe/core.hpp>#include <cloe/trigger.hpp>#include <cloe/trigger/helper_macros.hpp>Go to the source code of this file.
Macros | |
| #define | DEFINE_NIL_EVENT(xName, xname, xdescription) |
| #define DEFINE_NIL_EVENT | ( | xName, | |
| xname, | |||
| xdescription | |||
| ) |
Macro DEFINE_NIL_EVENT defines an event that has no state and no configuration.
| xName | identifier for event |
| xname | string identifier of event (lowercase) |
| xdescription | string description of event |
Given the stateless event "start of simulation", we can create it in code like so, note that the semicolon at the end is required.
This will define the following classes for us:
EventEventFactoryEventCallbackThis event can be registered with the register_event helper function.