]> git.mxchange.org Git - flightgear.git/blob - Polygon/names.hxx
Version 0.6.0
[flightgear.git] / Polygon / names.hxx
1 // names.hxx -- process shapefiles names
2 //
3 // Written by Curtis Olson, started February 1999.
4 //
5 // Copyright (C) 1999  Curtis L. Olson  - curt@flightgear.org
6 //
7 // This program is free software; you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License as published by
9 // the Free Software Foundation; either version 2 of the License, or
10 // (at your option) any later version.
11 //
12 // This program is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 // GNU General Public License for more details.
16 //
17 // You should have received a copy of the GNU General Public License
18 // along with this program; if not, write to the Free Software
19 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 //
21 // $Id$
22 // (Log is kept at end of this file)
23  
24
25 #ifndef _NAMES_HXX
26 #define _NAMES_HXX
27
28
29 #include <Include/compiler.h>
30
31 #include STL_STRING
32
33 FG_USING_STD(string);
34
35
36 // Posible shape file types.  Note the order of these is important and
37 // defines the priority of these shapes if they should intersect.  The
38 // smaller the number, the higher the priority.
39 enum AreaType {
40     DefaultArea       = 0,
41     AirportKeepArea   = 1,
42     AirportIgnoreArea = 2,
43     OceanArea         = 3,
44     LakeArea          = 4,
45     DryLakeArea       = 5,
46     IntLakeArea       = 6,
47     ReservoirArea     = 7,
48     IntReservoirArea  = 8,
49     StreamArea        = 9,
50     CanalArea         = 10,
51     GlacierArea       = 11,
52     MarshArea         = 12,
53     VoidArea          = 9997,
54     NullArea          = 9998,
55     UnknownArea       = 9999
56 };
57
58
59 // return area type from text name
60 AreaType get_area_type( string area );
61
62 // return text form of area name
63 string get_area_name( AreaType area );
64
65
66 #endif // _NAMES_HXX
67
68
69 // $Log$
70 // Revision 1.5  1999/03/27 05:31:25  curt
71 // Make 0 the default area type since this corresponds well with the conventions
72 //   used by the triangulator.
73 //
74 // Revision 1.4  1999/03/22 23:49:30  curt
75 // Moved AreaType get_shapefile_type(GDBFile *dbf, int rec) to where it
76 // belongs in ShapeFile/
77 //
78 // Revision 1.3  1999/03/01 15:35:53  curt
79 // Generalized the routines a bit to make them more useful.
80 //
81 // Revision 1.2  1999/02/26 22:10:42  curt
82 // Updated names and priorities of area types.
83 //
84 // Revision 1.1  1999/02/25 21:30:24  curt
85 // Initial revision.
86 //
87 // Revision 1.1  1999/02/23 01:29:05  curt
88 // Additional progress.
89 //