OpenCPN Partial API docs
Loading...
Searching...
No Matches
s57RegistrarMgr.h
1/***************************************************************************
2 *
3 * Project: OpenCPN
4 *
5 ***************************************************************************
6 * Copyright (C) 2010 by David S. Register *
7 * *
8 * This program is free software; you can redistribute it and/or modify *
9 * it under the terms of the GNU General Public License as published by *
10 * the Free Software Foundation; either version 2 of the License, or *
11 * (at your option) any later version. *
12 * *
13 * This program is distributed in the hope that it will be useful, *
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16 * GNU 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 *
20 * Free Software Foundation, Inc., *
21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
22 ***************************************************************************
23 */
24
25#ifndef __S57REGISTRARMGR_H__
26#define __S57REGISTRARMGR_H__
27
28#include <wx/hashmap.h>
29#include <wx/string.h>
30
31WX_DECLARE_STRING_HASH_MAP(int, CSVHash1);
32
33WX_DECLARE_HASH_MAP(int, std::string, wxIntegerHash, wxIntegerEqual, CSVHash2);
34
40public:
41 s57RegistrarMgr(const wxString& csv_dir, FILE* flog);
43
44 int getAttributeID(const char* pAttrName);
45 std::string getAttributeAcronym(int nID);
46 std::string getFeatureAcronym(int nID);
47
48private:
49 bool s57_attr_init(const wxString& csv_dir);
50 bool s57_feature_init(const wxString& csv_dir);
51
52 CSVHash1 m_attrHash1;
53 CSVHash2 m_attrHash2;
54
55 CSVHash1 m_featureHash1;
56 CSVHash2 m_featureHash2;
57};
58
59#endif
s57RegistrarMgr Definition This is a class holding the ctor and dtor for the global registrar