WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
FrontFile.h
1#ifndef _WINC_FRONTFILE
2#define _WINC_FRONTFILE
3
4#include <WXP/Date.h>
5#include <WXP/File.h>
6#include <WXP/Filename.h>
7#include <WXP/FrontData.h>
8#include <WXP/String.h>
9
10namespace WXP {
11 class FrontFile {
12 File file;
13 Date fdate;
14 Date date;
15 bool opened;
16
17 int format;
18 const static int line_len = 1000;
19 char line[line_len];
20 char tag[80];
21 String data;
22 int fhour;
23 int found;
24 int cont;
25
26 public:
27 FrontFile();
28 FrontFile( const char *file );
29 FrontFile( Filename &file );
30 inline bool isOpen(){ return opened; };
31 int init();
32 inline int getFormat(){ return format;};
33 inline int setHour( int rhour ){ fhour = rhour; return 1; };
34 inline int setDate( Date &rdate ){ fdate = rdate; return 1; };
35 int open( const char *filename );
36 int open( Filename &filename );
37 int read( FrontData &front );
38 int print();
39
40 enum Format {
41 UNK,
42 LOW,
43 HIGH,
44 WXP };
45 };
46}
47#endif
This class stores date and time information.
Definition Date.h:8
This class accesses files.
Definition File.h:15
This class creates filenames.
Definition Filename.h:11
This structure stores front information.
Definition FrontData.h:9
This class read in front data (ASUS01)
Definition FrontFile.h:11
This is a variable length string class.
Definition String.h:5
All WXP classes fall under the WXP namespace.
Definition Angle.h:4