OpenCPN Partial API docs
Loading...
Searching...
No Matches
s57registrar_mgr.h
Go to the documentation of this file.
1
/**************************************************************************
2
* Copyright (C) 2010 by David S. Register *
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 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 *
16
* Free Software Foundation, Inc., *
17
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
18
***************************************************************************/
19
25
#ifndef __S57REGISTRARMGR_H__
26
#define __S57REGISTRARMGR_H__
27
28
#include <wx/hashmap.h>
29
#include <wx/string.h>
30
31
WX_DECLARE_STRING_HASH_MAP(
int
, CSVHash1);
32
33
WX_DECLARE_HASH_MAP(
int
, std::string, wxIntegerHash, wxIntegerEqual, CSVHash2);
34
39
class
s57RegistrarMgr
{
40
public
:
41
s57RegistrarMgr
(
const
wxString& csv_dir, FILE* flog);
42
~s57RegistrarMgr
();
43
44
int
getAttributeID(
const
char
* pAttrName);
45
std::string getAttributeAcronym(
int
nID);
46
std::string getFeatureAcronym(
int
nID);
47
48
private
:
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
s57RegistrarMgr Definition This is a class holding the ctor and dtor for the global registrar
Definition
s57registrar_mgr.h:39
libs
s57-charts
include
s57registrar_mgr.h
Generated on Thu Sep 24 2026 00:10:04 for OpenCPN Partial API docs by
1.9.8