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

Last change on this file since 34650 was 2092, checked in by enxrah, 13 years ago

Nick didn't write this. I did :-)

File size: 1.4 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 IMGTRE_H
20#define IMGTRE_H
21
22#define MAX_LEVEL 16
23#define TRUE 1
24#define FALSE 0
25
26class MapLevel {
27 public:
28  int present;
29  int last;
30  int bits_per_coord;
31  int subs;
32};
33
34class ImgTreFile : public ImgSubfile {
35 public:
36  ImgTreFile();
37  int ReadFile(std::ifstream &in);
38 private:
39  double bound_n, bound_e, bound_s, bound_w;
40  int ReadLevels(int add, int size);
41  int ReadSubs(int add, int size);
42  int ReadCopy(int add, int size, int rec_size);
43  int ReadPolyL(int add, int size, int rec_size);
44  int ReadPolyG(int add, int size, int rec_size);
45  int ReadPOI(int add, int size, int rec_size);
46  MapLevel Levels[16];
47};
48
49#endif
Note: See TracBrowser for help on using the repository browser.