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

Method GetNodeStatuses

libs/storage/storage.cpp:2008–2019  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2006}
2007
2008void Storage::GetNodeStatuses(CountryId const & countryId, NodeStatuses & nodeStatuses) const
2009{
2010 CHECK_THREAD_CHECKER(m_threadChecker, ());
2011
2012 CountryTree::Node const * const node = m_countries.FindFirst(countryId);
2013 CHECK(node, (countryId));
2014
2015 StatusAndError statusAndErr = GetNodeStatus(*node);
2016 nodeStatuses.m_status = statusAndErr.status;
2017 nodeStatuses.m_error = statusAndErr.error;
2018 nodeStatuses.m_groupNode = (node->ChildrenCount() != 0);
2019}
2020
2021void Storage::SetCallbackForClickOnDownloadMap(DownloadFn & downloadFn)
2022{

Calls 2

FindFirstMethod · 0.80
ChildrenCountMethod · 0.80

Tested by 1

UNIT_TESTFunction · 0.64