MCPcopy Create free account
hub / github.com/SoarGroup/Soar / InternalConvertToEvent

Function InternalConvertToEvent

IDE Projects/include/sml_Events.h:336–346  ·  view source on GitHub ↗

* @brief Convert from a string version of an event to the int (enum) version. * Returns smlEVENT_INVALID_EVENT (== 0) if the string is not recognized. *************************************************************/

Source from the content-addressed store, hash-verified

334 * Returns smlEVENT_INVALID_EVENT (== 0) if the string is not recognized.
335 *************************************************************/
336 inline int InternalConvertToEvent(char const* pStr)
337 {
338 Events::ToEventMap::iterator mapIter = m_ToEventMap.find(pStr);
339
340 if (mapIter == m_ToEventMap.end())
341 {
342 return smlEVENT_INVALID_EVENT ;
343 }
344
345 return mapIter->second ;
346 }
347
348 /*************************************************************
349 * @brief Convert from int version of an event to the string form.

Callers 1

ConvertToEventFunction · 0.70

Calls 2

endMethod · 0.80
findMethod · 0.45

Tested by

no test coverage detected