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

Method Load

libs/routing/routes_builder/routes_builder.cpp:84–95  ·  view source on GitHub ↗

static

Source from the content-addressed store, hash-verified

82
83// static
84RoutesBuilder::Params RoutesBuilder::Params::Load(ReaderSource<FileReader> & src)
85{
86 Params params;
87
88 auto const type = ReadPrimitiveFromSource<int>(src);
89 CHECK_LESS(type, static_cast<int>(VehicleType::Count), ());
90
91 params.m_type = static_cast<VehicleType>(type);
92 params.m_checkpoints = Checkpoints(LoadPointDVector(src));
93
94 return params;
95}
96
97// RoutesBuilder -----------------------------------------------------------------------------------
98

Callers

nothing calls this directly

Calls 8

LoadPointDVectorFunction · 0.85
CheckpointsClass · 0.50
LoadFunction · 0.50
resizeMethod · 0.45
emptyMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
SwapMethod · 0.45

Tested by

no test coverage detected