core/vil/file_formats/vil_bmp_file_header.h
Go to the documentation of this file.
00001 // This is core/vil/file_formats/vil_bmp_file_header.h
00002 #ifndef vil_bmp_file_header_h_
00003 #define vil_bmp_file_header_h_
00004 #ifdef VCL_NEEDS_PRAGMA_INTERFACE
00005 #pragma interface
00006 #endif
00007 //:
00008 // \file
00009 // \author fsm
00010 
00011 #include <vcl_iosfwd.h>
00012 class vil_stream;
00013 
00014 struct vil_bmp_file_header
00015 {
00016   char     magic[2];      // 2
00017   unsigned file_size;     // 4
00018   short    reserved1;     // 2
00019   short    reserved2;     // 2
00020   unsigned bitmap_offset; // 4
00021 
00022   vil_bmp_file_header();
00023   void read(vil_stream *);
00024   void write(vil_stream *) const;
00025   void print(vcl_ostream &) const;
00026   bool signature_valid() const;
00027 };
00028 
00029 #endif // vil_bmp_file_header_h_