// MMsgCommMRTGReply::Unpack // Virtual method from MiniMessage. Extracts data from message buffer. void MMsgCommMRTGReply::Unpack(void) { WTRACE("MMsgCommMRTGReply::Unpack"); MiniMessage::Unpack(); if ((GetServiceType() != WONMsg::MiniCommonService) || (GetMessageType() != WONMsg::MiniCommMRTGReply)) { WDBG_AH("MMsgCommMRTGReply::Unpack Not a MiniCommMRTGReply message!"); throw WONMsg::BadMsgException(*this, __LINE__, __FILE__, "Not a MiniCommMRTGReply message."); } // Read startTick and determine lag WDBG_LL("MMsgCommMRTGReply::Unpack Reading message data"); mStatus = ReadShort(); mPrimaryData = ReadLongLong(); mSecondaryData = ReadLongLong(); }
wxDateTime TIniFile::ReadDate(const wxString &Section, const wxString &Ident, wxDateTime Default) { wxLongLong ticks = ReadLongLong(Section, Ident, Default.GetTicks()); if (ticks == 0 || ticks == -1) return Default; wxDateTime result (ticks); if (result.IsValid()) return result; else return Default; }