/* * nemeaCode.h * * Created on: Oct 21, 2014 * Author: Alan Aguilar Sologuren */ #ifndef NMEALIB_NMEALIB___NMEACODE_H_ #define NMEALIB_NMEALIB___NMEACODE_H_ #include "nmea_defs.h" class nmeaCode { public: nmeaCode(char* name=nullptr); virtual ~nmeaCode(); virtual void code_init(void); virtual int code_gen(char *buff, int buff_sz);// TODO para generator virtual int code_parse(const char *buff, int buff_sz);// TODO para parser private: const char codename[8]; const int type; char *codebuff; }; #endif /* NMEALIB_NMEALIB___NMEACODE_H_ */