mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-08 13:27:57 +00:00
[traffic] Store TraFF message ID with decoded path
Signed-off-by: mvglasow <michael -at- vonglasow.com>
This commit is contained in:
@@ -28,6 +28,7 @@ DECLARE_EXCEPTION(DecodedPathSaveError, RootException);
|
||||
struct DecodedPath
|
||||
{
|
||||
PartnerSegmentId m_segmentId;
|
||||
std::string m_messageId;
|
||||
Path m_path;
|
||||
};
|
||||
|
||||
|
||||
@@ -234,6 +234,7 @@ public:
|
||||
m_graph.ResetFakes();
|
||||
|
||||
path.m_segmentId.Set(segment.m_segmentId);
|
||||
path.m_messageId = segment.m_messageId;
|
||||
|
||||
auto const & points = segment.GetLRPs();
|
||||
CHECK_GREATER(points.size(), 1, ("A segment cannot consist of less than two points"));
|
||||
@@ -322,6 +323,7 @@ public:
|
||||
uint32_t constexpr kMaxProjectionCandidates = 5;
|
||||
|
||||
path.m_segmentId.Set(segment.m_segmentId);
|
||||
path.m_messageId = segment.m_messageId;
|
||||
|
||||
auto const & points = segment.GetLRPs();
|
||||
CHECK_GREATER(points.size(), 1, ("A segment cannot consist of less than two points"));
|
||||
|
||||
@@ -151,6 +151,7 @@ struct LinearSegment
|
||||
LinearSegmentSource m_source = LinearSegmentSource::NotValid;
|
||||
// TODO(mgsergio): Think of using openlr::PartnerSegmentId
|
||||
uint32_t m_segmentId = kInvalidSegmentId;
|
||||
std::string m_messageId = "";
|
||||
// TODO(mgsergio): Make sure that one segment cannot contain
|
||||
// more than one location reference.
|
||||
LinearLocationReference m_locationReference;
|
||||
|
||||
Reference in New Issue
Block a user