-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInfo.h
51 lines (41 loc) · 1.25 KB
/
Info.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
#ifndef _INFO_H
#define _INFO_H
#include <string>
#include <iostream>
#include <iomanip>
#include <sstream>
#include <fstream>
// ----------------------------------------------------------------------------
// Class
// ----------------------------------------------------------------------------
std::string trim(const std::string&, const std::string&);
std::string to_str(long);
std::string to_str2(long, int);
class Info {
private:
int status;
std::ofstream *os;
public:
int start_immediately;
double delta_hdg;
double delta_dfp;
double newtrack_dfp; // not useful?
double delta_alt;
int format;
std::string outfilename;
std::string prefsfilename;
// Constructor.
Info();
// Destructor.
~Info();
int get_status() { return status; }
void set_status(int s) { status = s; }
void read_prefs( const std::string& );
void open_outfile( const std::string& fn );
void write_outfile( const std::string& );
void close_outfile();
void flush_outfile();
void write_geopos( const struct geopos&, const std::string&, double, double );
void close_track();
};
#endif