btftoolchain
simulation.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 
5 #include "common.h"
6 
7 namespace btf
8 {
9 
16 {
17  public:
21  enum class Events
22  {
24  tag,
26  unknown
27  };
28 
34  static std::string eventToString(Events ev);
35 
41  static Events stringToEvent(const std::string& str);
42 };
43 } // namespace btf
Class for the Simulation (SIM) events.
Definition: simulation.h:16
static std::string eventToString(Events ev)
Converts the enum Events into string.
Definition: simulation.cpp:6
Events
Possible types of simulation events.
Definition: simulation.h:22
@ unknown
Default value.
@ tag
The tag event is used to annotate the BTF trace with system and model information.
static Events stringToEvent(const std::string &str)
Converts a string into the enum Events.
Definition: simulation.cpp:14
Definition: btf.h:43