source: subversion/applications/lib/libimg/ImgHeader.h @ 34650

Last change on this file since 34650 was 11688, checked in by nienhueser, 11 years ago

compile.

File size: 1.2 KB
Line 
1/*
2    Copyright (C) 2007 Robert Hart, rob@bathterror.free-online.co.uk
3
4    This program is free software; you can redistribute it and/or modify
5    it under the terms of the GNU General Public License as published by
6    the Free Software Foundation; either version 2 of the License, or
7    (at your option) any later version.
8
9    This program is distributed in the hope that it will be useful,
10    but WITHOUT ANY WARRANTY; without even the implied warranty of
11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12    GNU Lesser General Public License for more details.
13
14    You should have received a copy of the GNU General Public License
15    along with this program; if not, write to the Free Software
16    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111 USA
17
18 */
19#ifndef IMGHEADER_H
20#define IMGHEADER_H
21#include "Img.h"
22
23class ImgHeader : public ImgData
24{
25 public:
26  ImgHeader();
27  void CreateHeader();
28  void SetNumFatBlocks(int n);
29  int GetNumFatBlocks();
30  int ReadFile(std::ifstream &in);
31
32 private:
33  int chksum;
34  int nFatBlocks;
35#define IDENT "GARMIN\0"
36  std::string description;
37  void SetDescription(const char *desc);
38};
39
40#endif
Note: See TracBrowser for help on using the repository browser.