MCPcopy Create free account
hub / github.com/Tencent/TAD_Sim / initFile

Method initFile

common/map_sdk/map_engine/src/mem_search.cpp:31–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29bool MemSearch::connSuccess() { return mapPtr != NULL; }
30
31bool MemSearch::initFile(const std::string& filePath) {
32 if (mOutPtr == NULL) {
33 mOutPtr = std::make_shared<hadmap::OpenDriveOutput>();
34 mOutPtr->initFilePath(filePath.c_str());
35 }
36 mapfilePath = filePath;
37 return true;
38}
39
40bool MemSearch::saveMap(const int type, std::string filePath) {
41 if (MAP_DATA_TYPE(type) == SQLITE) {

Callers 1

OpenDriveSearchMethod · 0.80

Calls 1

initFilePathMethod · 0.80

Tested by

no test coverage detected