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

Function ReadCommon

libs/indexer/classificator_loader.cpp:19–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17namespace
18{
19void ReadCommon(std::unique_ptr<Reader> classificator, std::unique_ptr<Reader> types)
20{
21 Classificator & c = classif();
22 c.Clear();
23
24 {
25 // LOG(LINFO, ("Reading classificator"));
26 ReaderStreamBuf buffer(std::move(classificator));
27
28 std::istream s(&buffer);
29 c.ReadClassificator(s);
30 }
31
32 {
33 // LOG(LINFO, ("Reading types mapping"));
34 ReaderStreamBuf buffer(std::move(types));
35
36 std::istream s(&buffer);
37 c.ReadTypesMapping(s);
38 }
39}
40} // namespace
41
42namespace classificator

Callers 2

LoadFunction · 0.85
LoadTypesFunction · 0.85

Calls 3

ReadClassificatorMethod · 0.80
ReadTypesMappingMethod · 0.80
ClearMethod · 0.45

Tested by

no test coverage detected