sformatCtrl.h

00001 #ifndef SFORMAT_CTRL_H
00002 #define SFORMAT_CTRL_H
00003 
00004 /*
00005   S-Format ファイル管理
00006   Satofumi KAMIMURA
00007   $Id$
00008 */
00009 
00010 #include <vector>
00011 #include <string>
00012 
00013 
00014 class SFormat_Ctrl {
00015   int debug_level;
00016   static int hex2int(char ch);
00017   std::string error_message;
00018 
00019 public:
00020   std::vector<char> text;
00021   typedef struct {
00022     char type;
00023     char data_size;
00024     long address;
00025     char byte_data[49];
00026   } srec_t;
00027 
00028   SFormat_Ctrl(void);
00029   ~SFormat_Ctrl(void);
00030   const char* what(void);
00031   bool load(const char* file);
00032 
00033   static int parseSFormat(srec_t* srec, const char* line);
00034 };
00035 
00036 #endif /* !SFORMAT_CTRL_H */
00037 

Generated on Mon Apr 13 22:52:05 2009 by  doxygen 1.5.7.1