12345678910111213141516171819202122232425262728 |
- #ifndef _MESSAGE_PARSE_HPP_
- #define _MESSAGE_PARSE_HPP_
- #include <stdint.h>
- #include <stdio.h>
- #include <stdlib.h>
- 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
|