OpenCPN Partial API docs
Loading...
Searching...
No Matches
ais_defs.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, see <https://www.gnu.org/licenses/>. *
16 **************************************************************************/
17
24#ifndef AIS_DEFS_H_
25#define AIS_DEFS_H_
26
27#include <wx/hashmap.h>
28#include <wx/string.h>
29
30#define TRACKTYPE_DEFAULT 0
31#define TRACKTYPE_ALWAYS 1
32#define TRACKTYPE_NEVER 2
33
34typedef enum AisError {
35 AIS_NoError = 0,
36 AIS_Partial,
37 AIS_NMEAVDX_TOO_LONG,
38 AIS_NMEAVDX_CHECKSUM_BAD,
39 AIS_NMEAVDX_BAD,
40 AIS_NO_SERIAL,
41 AIS_NO_TCP,
42 AIS_GENERIC_ERROR,
43 AIS_INCOMPLETE_MULTIPART
44} _AisError;
45
46WX_DECLARE_HASH_MAP(int, wxString, wxIntegerHash, wxIntegerEqual,
47 AIS_Target_Name_Hash);
48
49#define TIMER_AIS_MSEC 998
50#define TIMER_AIS_AUDIO_MSEC 2000
51
52#endif // AIS_DEFS_H__