OpenCPN Partial API docs
Loading...
Searching...
No Matches
idx_entry.cpp
Go to the documentation of this file.
1
/**************************************************************************
2
* Copyright (C) 2013 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
#include "
idx_entry.h
"
25
26
#include <string.h>
27
#include <stdlib.h>
28
#include <wx/arrimpl.cpp>
29
30
WX_DEFINE_OBJARRAY(ArrayOfIDXEntry);
31
32
IDX_entry::IDX_entry()
33
: source_data_type(
SOURCE_TYPE_UNKNOWN
),
34
pDataSource(nullptr),
35
IDX_rec_num(0),
36
IDX_type(0),
37
IDX_lon(0.0),
38
IDX_lat(0.0),
39
IDX_ht_time_off(0),
40
IDX_ht_mpy(0.0f),
41
IDX_ht_off(0.0f),
42
IDX_lt_time_off(0),
43
IDX_lt_mpy(0.0f),
44
IDX_lt_off(0.0f),
45
IDX_sta_num(0),
46
IDX_flood_dir(0),
47
IDX_ebb_dir(0),
48
IDX_Useable(0),
49
Valid15(0),
50
Value15(0.0f),
51
Dir15(0.0f),
52
Ret15(false),
53
IDX_tzname(nullptr),
54
IDX_ref_file_num(0),
55
IDX_ref_dbIndex(0),
56
max_amplitude(0.0),
57
have_offsets(0),
58
station_tz_offset(0),
59
IDX_time_zone(0),
60
pref_sta_data(nullptr),
61
num_nodes(0),
62
num_csts(0),
63
num_epochs(0),
64
m_cst_speeds(nullptr),
65
m_cst_nodes(nullptr),
66
m_cst_epochs(nullptr),
67
m_work_buffer(nullptr),
68
first_year(0),
69
epoch(0),
70
epoch_year(0),
71
current_depth(0),
72
b_skipTooDeep(false),
73
recent_highlow_calc_time(0),
74
recent_high_level(0.0f),
75
recent_high_time(0),
76
recent_low_level(0.0f),
77
recent_low_time(0) {
78
memset(source_ident, 0,
sizeof
(source_ident));
79
memset(IDX_zone, 0,
sizeof
(IDX_zone));
80
memset(IDX_station_name, 0,
sizeof
(IDX_station_name));
81
memset(IDX_reference_name, 0,
sizeof
(IDX_reference_name));
82
}
83
84
IDX_entry::~IDX_entry() { free(
IDX_tzname
); }
IDX_entry::IDX_tzname
char * IDX_tzname
Timezone name (dynamically allocated)
Definition
idx_entry.h:79
idx_entry.h
Tidal data container.
SOURCE_TYPE_UNKNOWN
@ SOURCE_TYPE_UNKNOWN
Unknown source type.
Definition
idx_entry.h:38
gui
src
idx_entry.cpp
Generated on Thu Nov 27 2025 02:46:06 for OpenCPN Partial API docs by
1.9.8