| 29 | bool MemSearch::connSuccess() { return mapPtr != NULL; } |
| 30 | |
| 31 | bool 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 | |
| 40 | bool MemSearch::saveMap(const int type, std::string filePath) { |
| 41 | if (MAP_DATA_TYPE(type) == SQLITE) { |
no test coverage detected