Debian Codegraph @

src/Navaids/SHPParser.hxx

raw symbols SCIP
1 /**
2 * SHPParser - parse ESRI ShapeFiles containing PolyLines */
3
4 // Written by James Turner, started 2013.
5 //
6 // Copyright (C) 2013 James Turner <[email protected]>
7 //
8 // This program is free software; you can redistribute it and/or
9 // modify it under the terms of the GNU General Public License as
10 // published by the Free Software Foundation; either version 2 of the
11 // License, or (at your option) any later version.
12 //
13 // This program is distributed in the hope that it will be useful, but
14 // WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 // General Public License for more details.
17 //
18 // You should have received a copy of the GNU General Public License
19 // along with this program; if not, write to the Free Software
20 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21
22 #ifndef FG_SHP_PARSER_HXX
23 #define FG_SHP_PARSER_HXX
24
25 #include <Navaids/PolyLine.hxx>
26
27 // forward decls
28 class SGPath;
29
30 namespace flightgear
31 {
32
33 class SHPParser
34 {
35 public:
36 /**
37 * Parse a shape file containing PolyLine data.
38 *
39 * Throws sg_exceptions if parsing problems occur.
40 */
41 static void parsePolyLines(const SGPath&, PolyLine::Type aTy, PolyLineList& aResult, bool aClosed);
42 };
43
44 } // of namespace flightgear
45
46 #endif // of FG_SHP_PARSER_HXX