forked from NOVACProject/NOVACProgram
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWindFileController.h
More file actions
51 lines (36 loc) · 1.68 KB
/
WindFileController.h
File metadata and controls
51 lines (36 loc) · 1.68 KB
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
#pragma once
/** The class CWindFileController is responsible for the downloading
of wind-field files from the FTP-server and occasional re-reading. */
class CWindFileController : public CWinThread
{
public:
CWindFileController(void);
DECLARE_DYNCREATE(CWindFileController);
DECLARE_MESSAGE_MAP()
// ----------------------------------------------------------------------
// --------------------- PUBLIC METHODS ---------------------------------
// ----------------------------------------------------------------------
/** Called when the thread is to be stopped */
afx_msg void OnQuit(WPARAM wp, LPARAM lp);
/** */
afx_msg void OnTimer(WPARAM nIDEvent, LPARAM lp);
/** Called when the thread is starting */
virtual BOOL InitInstance();
/** Called when the thread is stopping */
virtual int ExitInstance();
/** Called when there's nothing else to do. */
virtual BOOL OnIdle(LONG lCount);
// ----------------------------------------------------------------------
// --------------------- PUBLIC VARIABLES --------------------------------
// ----------------------------------------------------------------------
/** Timer */
UINT_PTR m_nTimerID;
private:
// ----------------------------------------------------------------------
// --------------------- PROTECTED METHODS ------------------------------
// ----------------------------------------------------------------------
/** Tries to download the file by connecting to an FTP-server */
void DownloadFileByFTP();
/** (Re)reads the wind field file */
void ReadWindFieldFile();
};