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

Method LoadFromBinaryProto

libs/indexer/drawing_rules.cpp:399–411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

397}
398
399void RulesHolder::LoadFromBinaryProto(string const & s)
400{
401 Clean();
402
403 DoSetIndex doSet(*this);
404
405 CHECK(doSet.m_cont.ParseFromString(s), ("Error in proto loading!"));
406
407 classif().GetMutableRoot()->ForEachObject(ref(doSet));
408
409 InitBackgroundColors(doSet.m_cont);
410 InitColors(doSet.m_cont);
411}
412
413void LoadRules()
414{

Callers 1

LoadRulesFunction · 0.80

Calls 2

ForEachObjectMethod · 0.80
GetMutableRootMethod · 0.80

Tested by

no test coverage detected