Debian Codegraph @

src/uk/me/parabola/imgfmt/app/lbl/POIIndex.java

raw symbols SCIP
1 /*
2 * Copyright (C) 2007 Steve Ratcliffe
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 version 2 as
6 * published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 *
14 * Author: Steve Ratcliffe
15 * Create date: Jan 1, 2008
16 */
17 package uk.me.parabola.imgfmt.app.lbl;
18
19 import uk.me.parabola.imgfmt.app.ImgFileWriter;
20 import uk.me.parabola.imgfmt.app.trergn.Subdivision;
21
22 /**
23 * Represent a POI index entry
24 *
25 * @author Mark Burton
26 */
27 public class POIIndex {
28
29 private final String name;
30 private final int poiIndex;
31 private final Subdivision group;
32 private final int subType;
33
34 public POIIndex(String name, int poiIndex, Subdivision group, int subType) {
35 this.name = name;
36 this.poiIndex = poiIndex;
37 this.group = group;
38 this.subType = subType;
39 }
40
41 void write(ImgFileWriter writer) {
42 writer.put1u(poiIndex);
43 writer.put2u(group.getNumber());
44 writer.put1u(subType);
45 }
46
47 public String getName() {
48 return name;
49 }
50 }