WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
LightFile.h
1#ifndef _WINC_LIGHTFILE
2#define _WINC_LIGHTFILE
3
4#include <WXP/Date.h>
5#include <WXP/File.h>
6#include <WXP/LightData.h>
7#include <WXP/Swap.h>
8
9namespace WXP {
10 class LightFile {
11 int type;
12 int num;
13 File file;
14 unsigned char pch,ch;
15 unsigned char buf[10];
16 int tcnt;
17 Date sdate;
18
19 Date date;
20 Swap swap;
21 int num_flash;
22 int tot_flash;
23 bool opened;
24 public:
25
26 LightFile();
27 LightFile( const char *filename, int rtype );
28 int init();
29 int open( const char *filename, int rtype );
30 bool isOpen();
31 int close();
32 int read( LightData &data );
33
34 static int getType( const char *str );
35
37 enum Type {
50 };
51 };
52}
53#endif
54
This class stores date and time information.
Definition Date.h:8
This class accesses files.
Definition File.h:15
This class defines standard lightning parameters.
Definition LightData.h:8
This class reads in lightning data from file.
Definition LightFile.h:10
int close()
Definition LightFile.cc:145
LightFile()
Definition LightFile.cc:23
bool isOpen()
Definition LightFile.cc:138
int open(const char *filename, int rtype)
Definition LightFile.cc:81
int read(LightData &data)
Definition LightFile.cc:162
static int getType(const char *str)
Definition LightFile.cc:50
Type
Definition LightFile.h:37
@ USPLN
Definition LightFile.h:45
@ NLDN_ASC
Definition LightFile.h:49
@ USPLNT
Definition LightFile.h:46
@ KAV
Definition LightFile.h:41
@ ALBANY
Definition LightFile.h:39
@ VAISALA_ASC
Definition LightFile.h:48
@ NOAA
Definition LightFile.h:42
@ GAI_ASC
Definition LightFile.h:44
@ UNISYS
Definition LightFile.h:40
@ USPLNB
Definition LightFile.h:47
@ UNK
Definition LightFile.h:38
@ GAIS
Definition LightFile.h:43
int init()
Definition LightFile.cc:40
This class performs byte swapping.
Definition Swap.h:7
All WXP classes fall under the WXP namespace.
Definition Angle.h:4