[traffic] Consolidate feed queue before decoding messages

Signed-off-by: mvglasow <michael -at- vonglasow.com>
This commit is contained in:
mvglasow
2025-05-14 21:03:54 +03:00
parent 53e80b9283
commit edb1b7e784
4 changed files with 80 additions and 0 deletions

View File

@@ -76,6 +76,20 @@ const std::map<EventType, uint16_t> kEventDelayMap{
// TODO Security*, Transport*, Weather* (not in enum yet)
};
bool operator< (IsoTime lhs, IsoTime rhs)
{
std::time_t t_lhs = std::mktime(&lhs);
std::time_t t_rhs = std::mktime(&rhs);
return t_lhs < t_rhs;
}
bool operator> (IsoTime lhs, IsoTime rhs)
{
std::time_t t_lhs = std::mktime(&lhs);
std::time_t t_rhs = std::mktime(&rhs);
return t_lhs > t_rhs;
}
openlr::LocationReferencePoint Point::ToLrp()
{
openlr::LocationReferencePoint result;