FemMaps/map/SigalertRoadSection.h

28 lines
581 B
C
Raw Normal View History

2023-10-15 01:49:35 -07:00
//
// Created by scoliono on 10/14/23.
//
#ifndef FEMMAPS_SIGALERTROADSECTION_H
#define FEMMAPS_SIGALERTROADSECTION_H
#include "RoadDirection.h"
2023-10-30 00:53:00 -07:00
#include "SigalertRoad.h"
#include "SigalertTypes.h"
2023-10-15 01:49:35 -07:00
class SigalertRoadSection {
public:
2023-10-30 00:53:00 -07:00
SigalertRoadSection(const SigalertRoadSectionJson& json, const SigalertRoad* road);
inline RoadDirection direction() { return m_dir; }
inline const SigalertRoad* road() { return m_road; }
2023-10-15 01:49:35 -07:00
private:
2023-10-30 00:53:00 -07:00
const SigalertRoad* m_road;
2023-10-15 01:49:35 -07:00
RoadDirection m_dir;
int m_sensor_idx_range[2];
};
#endif //FEMMAPS_SIGALERTROADSECTION_H