MCPcopy Create free account
hub / github.com/comaps/comaps / SerializeRoutePoint

Function SerializeRoutePoint

libs/map/routing_manager.cpp:129–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129void SerializeRoutePoint(json_t * node, RouteMarkData const & data)
130{
131 ASSERT(node != nullptr, ());
132 ToJSONObject(*node, "type", static_cast<int>(data.m_pointType));
133 ToJSONObject(*node, "title", data.m_title);
134 ToJSONObject(*node, "subtitle", data.m_subTitle);
135 ToJSONObject(*node, "x", data.m_position.x);
136 ToJSONObject(*node, "y", data.m_position.y);
137 ToJSONObject(*node, "replaceWithMyPosition", data.m_replaceWithMyPositionAfterRestart);
138}
139
140RouteMarkData DeserializeRoutePoint(json_t * node)
141{

Callers 1

SerializeRoutePointsFunction · 0.85

Calls 2

ASSERTFunction · 0.85
ToJSONObjectFunction · 0.50

Tested by

no test coverage detected