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

Method Parse

common/map_sdk/transmission/src/CJsonObject.cpp:250–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248}
249
250bool CJsonObject::Parse(const std::string& strJson) {
251 Clear();
252 m_pJsonData = cJSON_Parse(strJson.c_str());
253 if (m_pJsonData == NULL) {
254 m_strErrMsg = std::string("prase json string error at ") + cJSON_GetErrorPtr();
255 return (false);
256 }
257 return (true);
258}
259
260void CJsonObject::Clear() {
261 m_pExternJsonDataRef = NULL;

Callers 10

getBoundaryMaxIdMethod · 0.45
getRoadMaxIdMethod · 0.45
getLaneLinkMaxIdMethod · 0.45
parseRoadMethod · 0.45
parseLaneMethod · 0.45
parseBoundaryMethod · 0.45
parseLinkMethod · 0.45
parseObjMethod · 0.45
parseRouteMethod · 0.45
GetMethod · 0.45

Calls 3

ClearFunction · 0.85
cJSON_ParseFunction · 0.85
cJSON_GetErrorPtrFunction · 0.85

Tested by

no test coverage detected