diff --git a/eas_decode.cpp b/eas_decode.cpp index 546717e..2cb9d49 100644 --- a/eas_decode.cpp +++ b/eas_decode.cpp @@ -189,6 +189,7 @@ bool eas::Decode(const char *s, Message &message) tt->tm_hour = atoi(matches[7]); tt->tm_min = atoi(matches[8]); tt->tm_sec = 0; + message.raw = s; message.originator = matches[1]; message.originator_desc = getOriginatorDesc(message.originator); message.event = matches[2]; diff --git a/eas_decode.h b/eas_decode.h index 9184e76..01160e2 100644 --- a/eas_decode.h +++ b/eas_decode.h @@ -4,6 +4,7 @@ namespace eas { struct Message { + std::string raw; std::string originator; std::string originator_desc; std::string event;