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

Function GetFileName

libs/platform/country_file.cpp:11–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9namespace platform
10{
11std::string GetFileName(std::string const & countryName, MapFileType type)
12{
13 ASSERT(!countryName.empty(), ());
14
15 switch (type)
16 {
17 case MapFileType::Map: return countryName + DATA_FILE_EXTENSION;
18 case MapFileType::Diff: return countryName + DIFF_FILE_EXTENSION;
19 case MapFileType::Count: break;
20 }
21
22 UNREACHABLE();
23}
24
25CountryFile::CountryFile() : m_mapSize(0) {}
26

Callers 6

GetFilePathFunction · 0.70
GetFileNameMethod · 0.70
GetPathMethod · 0.70
GetReaderMethod · 0.50
UNIT_TESTFunction · 0.50

Calls 2

ASSERTFunction · 0.85
emptyMethod · 0.45

Tested by 1

UNIT_TESTFunction · 0.40