* @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. *************************************************************/
| 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. |
no test coverage detected