MCPcopy Create free account
hub / github.com/OpenDriveLab/OpenLane / Parse

Method Parse

eval/LANE_evaluation/lane2d/src/CJsonObject.cpp:517–528  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

515}
516
517bool CJsonObject::Parse(const std::string& strJson)
518{
519 Clear();
520 m_pJsonData = cJSON_Parse(strJson.c_str(), &mc_pError);
521 m_pKeyTravers = m_pJsonData;
522 if (m_pJsonData == NULL)
523 {
524 m_strErrMsg = std::string("prase json string error at ") + mc_pError;
525 return(false);
526 }
527 return(true);
528}
529
530void CJsonObject::Clear()
531{

Callers 2

read_lane_fileFunction · 0.80
GetMethod · 0.80

Calls 1

cJSON_ParseFunction · 0.85

Tested by

no test coverage detected