VIPRA Documentation
Loading...
Searching...
No Matches
modules.hpp
1#pragma once
2
3#include <string>
4
5namespace VIPRA::Modules {
6
7// NOLINTBEGIN(readability-identifier-naming)
8enum class Type {
9 Model,
10 Goals,
11 MapInput,
12 PedInput,
13 Output,
14 Pedestrians,
15 Parameters,
16 Map,
17 Simulation,
18 Behavior_model,
19};
20// NOLINTEND(readability-identifier-naming)
21
22inline auto to_string(Type type) -> std::string
23{
24 switch ( type ) {
25 case Type::Model:
26 return "model";
27 case Type::Goals:
28 return "goals";
29 case Type::Output:
30 return "output";
31 case Type::Pedestrians:
32 return "pedestrians";
33 case Type::Parameters:
34 return "parameters";
35 case Type::Map:
36 return "map";
37 case Type::Simulation:
38 return "simulation";
39 case Type::Behavior_model:
40 return "behavior_model";
41 case Type::MapInput:
42 return "map_input";
43 case Type::PedInput:
44 return "ped_input";
45 }
46
47 return "unknown";
48}
49
50static constexpr size_t MODULE_COUNT = 8;
51} // namespace VIPRA::Modules