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"
35
37public:
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
47private:
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
55WX_DECLARE_OBJARRAY(TCDataSource, ArrayOfTCDSources);
56
57#endif
Represents an index entry for tidal and current data.
Definition idx_entry.h:48
Tidal data container.
Tide and current data container.
Load harmonic data from ascii source TCDataFactory.
TCDataFactory loading data from binary file.