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

Method Write

libs/transit/world_feed/world_feed.cpp:1428–1440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1426}
1427
1428void Networks::Write(IdSet const & ids, std::ofstream & stream) const
1429{
1430 for (auto networkId : ids)
1431 {
1432 auto const & networkTitle = m_data.find(networkId)->second;
1433
1434 auto node = base::NewJSONObject();
1435 ToJSONObject(*node, "id", networkId);
1436 ToJSONObject(*node, "title", networkTitle);
1437
1438 WriteJson(node.get(), stream);
1439 }
1440}
1441
1442void Routes::Write(IdSet const & ids, std::ofstream & stream) const
1443{

Callers 1

DumpDataFunction · 0.45

Calls 15

NewJSONObjectFunction · 0.85
WriteJsonFunction · 0.85
ShapeLinkToJsonFunction · 0.85
VectorToJsonFunction · 0.85
ScheduleToJsonFunction · 0.85
NewJSONArrayFunction · 0.85
PointToJsonFunction · 0.85
getMethod · 0.65
ToJSONObjectFunction · 0.50
findMethod · 0.45
releaseMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected