forked from NOVACProject/NOVACProgram
-
Notifications
You must be signed in to change notification settings - Fork 0
/
VolcanoInfo.h
53 lines (37 loc) · 1.66 KB
/
VolcanoInfo.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#pragma once
#include <string>
#include <SpectralEvaluation/GPSData.h>
/** The <b>CVolcanoInfo</b>-class the programs database of known volcanoes with
name, position and associated observatory.
This information is used throughout the program in order to retrieve information
about the volcanoes.*/
#define MAX_VOLCANOES 35
class CVolcanoInfo
{
public:
CVolcanoInfo();
/** The number of volcanoes that are configured */
unsigned int m_volcanoNum;
/** The name of the volcano(es) */
CString m_name[MAX_VOLCANOES];
/** The simplified name of the volcano(es) */
CString m_simpleName[MAX_VOLCANOES];
/** The latitude of the peak(s) */
double m_peakLatitude[MAX_VOLCANOES];
/** The longitude of the peak(s) */
double m_peakLongitude[MAX_VOLCANOES];
/** The altitude of the peak(s) (masl) */
double m_peakHeight[MAX_VOLCANOES];
/** The number of hours to GMT, used to calculate the local-time from the GPS-time */
double m_hoursToGMT[MAX_VOLCANOES];
/** The observatory in charge of this volcano */
int m_observatory[MAX_VOLCANOES];
/** The number of volcanoes that are configured by the program
(if m_preConfiguredVolcanoNum > m_volcanoNum then the user has added a volcano) */
unsigned int m_preConfiguredVolcanoNum;
};
/** Retrieves the index (in the CVolcanoInfo structure) of the volcano with the given name.
Returns -1 if no volcano could be found. */
int IndexOfVolcano(const std::string& volcanoName);
/** Retrieves the information regarding the volcanoe with the given index */
CNamedLocation GetVolcano(unsigned int volcanoIndex);