btftoolchain
stimulus.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 class Stimulus
17 {
18  public:
22  enum class Events
23  {
26  trigger,
27 
29  unknown
30  };
31 
37  static std::string eventToString(Events ev);
38 
44  static Events stringToEvent(const std::string& str);
45 };
46 } // namespace btf
Class for Stimulus (STIM) Events (see BTF Specification Chapter 2.3.1).
Definition: stimulus.h:17
static Events stringToEvent(const std::string &str)
Converts a string into the enum Events.
Definition: stimulus.cpp:18
static std::string eventToString(Events ev)
Converts the enum Events into string.
Definition: stimulus.cpp:5
Events
Possible types of Stimulus events.
Definition: stimulus.h:23
@ unknown
Default value.
Definition: btf.h:43