/* * Copyright (C) 2009,2010 by Jonathan Naylor, G4KLX * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; version 2 of the License. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ #ifndef SlowDataEncoder_H #define SlowDataEncoder_H #include "MessageData.h" #include "HeaderData.h" #include using namespace std; #include class CSlowDataEncoder { public: CSlowDataEncoder(); ~CSlowDataEncoder(); // void setGPSMessageData(const CGPSMessageData& gpsMessage); void setMessageData(const wxString& message); void setHeaderData(const CHeaderData& header); void setCodeSquelch(unsigned char value); void getData(unsigned char* data); void reset(); private: vector m_initial; vector m_body; vector::const_iterator m_it; vector::const_iterator m_end; vector m_header; vector m_message; // vector m_gpsMessage; vector m_codeSquelch; void buildData(); }; #endif