OpenCPN Partial API docs
Loading...
Searching...
No Matches
tc_data_source.h
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
#ifndef TCDATASOURCE_H_
25
#define TCDATASOURCE_H_
26
27
#include <wx/string.h>
28
#include <wx/dynarray.h>
29
30
#include "tc_error_code.h"
31
#include "
idx_entry.h
"
32
#include "
tc_data_factory.h
"
33
#include "
tcds_ascii_harmonic.h
"
34
#include "
tcds_binary_harmonic.h
"
35
36
class
TCDataSource
{
37
public
:
38
TCDataSource
();
39
~TCDataSource
();
40
41
TC_Error_Code LoadData(
const
wxString &data_file_path);
42
43
int
GetMaxIndex();
44
IDX_entry
*GetIndexEntry(
int
n_index);
45
TC_Error_Code LoadHarmonicData(
IDX_entry
*pIDX);
46
47
private
:
48
wxString m_data_source_path;
49
50
TCDataFactory
*m_pfactory;
51
TCDS_Ascii_Harmonic
*pTCDS_Ascii_Harmonic;
52
TCDS_Binary_Harmonic
*pTCDS_Binary_Harmonic;
53
};
54
55
WX_DECLARE_OBJARRAY(
TCDataSource
, ArrayOfTCDSources);
56
57
#endif
IDX_entry
Represents an index entry for tidal and current data.
Definition
idx_entry.h:48
TCDS_Ascii_Harmonic
Definition
tcds_ascii_harmonic.h:38
TCDS_Binary_Harmonic
Definition
tcds_binary_harmonic.h:33
TCDataFactory
Definition
tc_data_factory.h:53
TCDataSource
Definition
tc_data_source.h:36
idx_entry.h
Tidal data container.
tc_data_factory.h
Tide and current data container.
tcds_ascii_harmonic.h
Load harmonic data from ascii source TCDataFactory.
tcds_binary_harmonic.h
TCDataFactory loading data from binary file.
gui
include
gui
tc_data_source.h
Generated on Fri Oct 10 2025 02:28:04 for OpenCPN Partial API docs by
1.9.8