#ifndef _MESSAGE_PARSE_HPP_ #define _MESSAGE_PARSE_HPP_ #include #include #include struct message_file { private: bool m_owner; FILE* m_file; char m_last_line[1024]; message_file(const message_file&); public: message_file(const char*fname); message_file(FILE*fp); ~message_file(); int get_line(uint64_t*time,char*buf,int buflen,char*msg); int get_line(uint64_t*time,char*buf,int buflen); int put_line(FILE*fp,uint64_t time,char*buf,int buflen); int get_card_message(uint32_t card_id,char*b); }; #endif