| 55 | const static std::string NotFoundMarkerString = "ERROR: could not resolve marker"; |
| 56 | |
| 57 | std::pair<bool, std::reference_wrapper<const std::string>> AftermathMarkerTracker::getEventString(size_t hash) |
| 58 | { |
| 59 | auto const& found = m_EventStrings.find(hash); |
| 60 | if (found != m_EventStrings.end()) |
| 61 | { |
| 62 | return std::make_pair<bool, std::reference_wrapper<const std::string>>(true, found->second); |
| 63 | } |
| 64 | else |
| 65 | { |
| 66 | // could technically return a string literal according to the spec, but compiler complains, so using static |
| 67 | return std::make_pair(false, NotFoundMarkerString); |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | AftermathCrashDumpHelper::AftermathCrashDumpHelper(): |
| 72 | m_MarkerTrackers{}, |