18 namespace TrackFindingCDC {
28 enum class EPreferredDirection {
42 inline EPreferredDirection getPreferredDirection(
const std::string& preferredDirectionString)
44 if (preferredDirectionString == std::string(
"none")) {
45 return EPreferredDirection::c_None;
46 }
else if (preferredDirectionString == std::string(
"symmetric")) {
47 return EPreferredDirection::c_Symmetric;
48 }
else if (preferredDirectionString == std::string(
"outwards")) {
49 return EPreferredDirection::c_Outwards;
50 }
else if (preferredDirectionString == std::string(
"downwards")) {
51 return EPreferredDirection::c_Downwards;
52 }
else if (preferredDirectionString == std::string(
"curling")) {
53 return EPreferredDirection::c_Curling;
55 throw std::invalid_argument(
"Unexpected preferred direction string : '" + preferredDirectionString +
"'");
Abstract base class for different kinds of events.