Horizon
action_label.hpp
1 #pragma once
2 #include <string>
3 
4 namespace horizon {
5 enum class InToolActionID;
6 
8 public:
9  ActionLabelInfo(InToolActionID a1);
10  ActionLabelInfo(InToolActionID a1, const std::string &s);
11  ActionLabelInfo(InToolActionID a1, InToolActionID a2, const std::string &s);
12 
13  InToolActionID action1;
14  InToolActionID action2;
15  std::string label;
16  std::pair<InToolActionID, InToolActionID> get_key() const
17  {
18  return std::make_pair(action1, action2);
19  }
20 
21  bool operator==(const ActionLabelInfo &other) const
22  {
23  return action1 == other.action1 && action2 == other.action2 && label == other.label;
24  }
25 };
26 } // namespace horizon
Definition: action_label.hpp:7