OpenCPN Partial API docs
TCDS_Binary_Harmonic.h
1 /***************************************************************************
2  *
3  * Project: OpenCPN
4  *
5  ***************************************************************************
6  * Copyright (C) 2013 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 #ifndef __TCDS_BINARY_HARMONIC_H__
25 #define __TCDS_BINARY_HARMONIC_H__
26 
27 #include <wx/string.h>
28 
29 #include "TCDataFactory.h"
30 #include "Station_Data.h"
31 #include "IDX_entry.h"
32 
34 public:
37 
38  TC_Error_Code LoadData(const wxString &data_file_path);
39 
40  int GetMaxIndex(void) { return num_IDX; };
41  IDX_entry *GetIndexEntry(int n_index);
42  TC_Error_Code LoadHarmonicData(IDX_entry *pIDX);
43 
44 private:
45  ArrayOfStationData m_msd_array;
46 
47  wxString m_last_reference_not_found;
48 
49  ArrayOfIDXEntry m_IDX_array;
50 
51  int num_IDX;
52  int num_nodes;
53  int num_csts;
54  int num_epochs;
55  double *m_cst_speeds;
56  double **m_cst_nodes;
57  double **m_cst_epochs;
58  double *m_work_buffer;
59  int m_first_year;
60 };
61 
62 #endif
Definition: IDX_entry.h:41