OpenCPN Partial API docs
TCDataSource.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 __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
32
class
IDX_entry
;
33
class
TCDataFactory
;
34
class
TCDS_Ascii_Harmonic
;
35
class
TCDS_Binary_Harmonic
;
36
37
class
TCDataSource
{
38
public
:
39
TCDataSource
();
40
~
TCDataSource
();
41
42
TC_Error_Code LoadData(
const
wxString &data_file_path);
43
44
int
GetMaxIndex(
void
);
45
IDX_entry
*GetIndexEntry(
int
n_index);
46
TC_Error_Code LoadHarmonicData(
IDX_entry
*pIDX);
47
48
private
:
49
wxString m_data_source_path;
50
51
TCDataFactory
*m_pfactory;
52
TCDS_Ascii_Harmonic
*pTCDS_Ascii_Harmonic;
53
TCDS_Binary_Harmonic
*pTCDS_Binary_Harmonic;
54
};
55
56
WX_DECLARE_OBJARRAY(
TCDataSource
, ArrayOfTCDSources);
57
58
#endif
IDX_entry
Definition:
IDX_entry.h:41
TCDS_Ascii_Harmonic
Definition:
TCDS_Ascii_Harmonic.h:38
TCDS_Binary_Harmonic
Definition:
TCDS_Binary_Harmonic.h:33
TCDataFactory
Definition:
TCDataFactory.h:55
TCDataSource
Definition:
TCDataSource.h:37
gui
include
gui
TCDataSource.h
Generated on Thu Aug 1 2024 11:18:00 for OpenCPN Partial API docs by
1.9.1