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

Function hadmapConnect

common/map_sdk/map_engine/src/hadmap_engine.cpp:50–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48};
49
50int hadmapConnect(const char* fileInfo, const MAP_DATA_TYPE& type, txMapHandle** ppHandle) {
51 if ((*ppHandle) != NULL) delete (*ppHandle);
52 (*ppHandle) = new txMapHandle;
53 (*ppHandle)->dataType = type;
54 (*ppHandle)->searchPtr = SearchFactory::getInstance()->getSearchInterface(type, fileInfo, true);
55 if ((*ppHandle)->searchPtr->connSuccess()) {
56 return TX_HADMAP_HANDLE_OK;
57 } else {
58 delete (*ppHandle);
59 (*ppHandle) = NULL;
60 return TX_HADMAP_HANDLE_ERROR;
61 }
62}
63
64int hadmapConnect(const char* fileInfo, const MAP_DATA_TYPE& type, txMapHandle** ppHandle, bool doubleRoad) {
65 if ((*ppHandle) != NULL) delete (*ppHandle);

Callers 15

connectHDMapMethod · 0.85
ParseMapMethod · 0.85
CreateMapMethod · 0.85
ParseMapOldMethod · 0.85
ParseMapMethod · 0.85
ParseMapV2Method · 0.85
InitMethod · 0.85
ParseMapOldMethod · 0.85
ParseMapMethod · 0.85
ParseMapV2Method · 0.85
InitMethod · 0.85
ParseMapMethod · 0.85

Calls 3

getSearchInterfaceMethod · 0.80
connSuccessMethod · 0.45

Tested by 2

InitHADMapMethod · 0.68
mainFunction · 0.68