Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

htflt.h

Go to the documentation of this file.
00001 /* 
00002  *      HT Editor
00003  *      htflt.h
00004  *
00005  *      Copyright (C) 2003 Sebastian Biallas (sb@biallas.net)
00006  *
00007  *      This program is free software; you can redistribute it and/or modify
00008  *      it under the terms of the GNU General Public License version 2 as
00009  *      published by the Free Software Foundation.
00010  *
00011  *      This program is distributed in the hope that it will be useful,
00012  *      but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *      GNU General Public License for more details.
00015  *
00016  *      You should have received a copy of the GNU General Public License
00017  *      along with this program; if not, write to the Free Software
00018  *      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00019  */
00020 
00021 #ifndef __HTFLT_H__
00022 #define __HTFLT_H__
00023 
00024 #include "fltstruc.h"
00025 #include "formats.h"
00026 #include "htendian.h"
00027 #include "htformat.h"
00028 #include "relfile.h"
00029 
00030 #define DESC_FLT "flat - binary format"
00031 #define DESC_FLT_HEADER "flat/header"
00032 #define DESC_FLT_IMAGE "flat/image"
00033 
00034 
00035 extern format_viewer_if htflt_if;
00036 
00037 typedef uint32 FLTAddress;
00038 
00039 struct ht_flt_shared_data {
00040         FILEOFS header_ofs;
00041         flat_hdr header;
00042 
00043         FLTAddress code_start;
00044         FLTAddress code_end;
00045         FLTAddress data_start;
00046         FLTAddress data_end;
00047         FLTAddress bss_start;
00048         FLTAddress bss_end;
00049 };
00050 
00051 /*
00052  *      CLASS ht_flt
00053  */
00054 
00055 class ht_flt: public ht_format_group {
00056 public:
00057                         void init(bounds *b, ht_streamfile *file, format_viewer_if **ifs, ht_format_group *format_group, FILEOFS header_ofs);
00058         virtual void done();
00059 };
00060 
00061 
00062 #endif /* !__HTELF_H__ */
00063 

Generated on Fri May 7 21:15:33 2004 by doxygen 1.3.5