OpenCPN Partial API docs
ais_defs.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 _AIS_DEFS_H__
26 #define _AIS_DEFS_H__
27 
28 #include <wx/hashmap.h>
29 #include <wx/string.h>
30 
31 #define TRACKTYPE_DEFAULT 0
32 #define TRACKTYPE_ALWAYS 1
33 #define TRACKTYPE_NEVER 2
34 
35 typedef enum AisError {
36  AIS_NoError = 0,
37  AIS_Partial,
38  AIS_NMEAVDX_TOO_LONG,
39  AIS_NMEAVDX_CHECKSUM_BAD,
40  AIS_NMEAVDX_BAD,
41  AIS_NO_SERIAL,
42  AIS_NO_TCP,
43  AIS_GENERIC_ERROR,
44  AIS_INCOMPLETE_MULTIPART
45 } _AisError;
46 
47 WX_DECLARE_HASH_MAP(int, wxString, wxIntegerHash, wxIntegerEqual,
48  AIS_Target_Name_Hash);
49 
50 
51 #define TIMER_AIS_MSEC 998
52 #define TIMER_AIS_AUDIO_MSEC 2000
53 
54 #endif // _AIS_DEFS_H__