WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | List of all members
WXP::LightFile Class Reference

This class reads in lightning data from file. More...

#include "../include/LightFile.h"

Public Types

enum  Type {
  UNK , ALBANY , UNISYS , KAV ,
  NOAA , GAIS , GAI_ASC , USPLN ,
  USPLNT , USPLNB , VAISALA_ASC , NLDN_ASC
}
 

Public Member Functions

 LightFile ()
 
 LightFile (const char *filename, int rtype)
 
int init ()
 
int open (const char *filename, int rtype)
 
bool isOpen ()
 
int close ()
 
int read (LightData &data)
 

Static Public Member Functions

static int getType (const char *str)
 

Detailed Description

This class reads in lightning data from file.

Author
Dan Vietor

Member Enumeration Documentation

◆ Type

File type

Enumerator
UNK 

Unknown type

ALBANY 

SUNY Albany format

UNISYS 

Unisys ASCII format

KAV 

Kavouras format

NOAA 

NOAAPORT format

GAIS 

GAIS binary format

GAI_ASC 

GAIS ASCII format

USPLN 

USPLN ASCII format

USPLNT 

Old USPLN Text format

USPLNB 

USPLN binary format

VAISALA_ASC 

Vaisala ASCII format

NLDN_ASC 

NLDN ASCII format

Constructor & Destructor Documentation

◆ LightFile() [1/2]

LightFile::LightFile ( )

Constructor

References init().

◆ LightFile() [2/2]

LightFile::LightFile ( const char *  filename,
int  rtype 
)

Constructor. Opens the file

Parameters
filenameThe file name
rtypeThe type of lightning file

References init(), and open().

Member Function Documentation

◆ close()

int LightFile::close ( )

Closes the file

References ALBANY, WXP::File::close(), GAI_ASC, GAIS, KAV, NLDN_ASC, NOAA, UNISYS, USPLN, USPLNB, and USPLNT.

Referenced by WXP::LightPlot::draw().

◆ getType()

int LightFile::getType ( const char *  str)
static

Gets the file type

Parameters
strThe file type (albany, unisys, kav, gais, noaa, uspln)

References ALBANY, WXP::StrLib::equal(), GAI_ASC, GAIS, KAV, NLDN_ASC, NOAA, UNISYS, UNK, USPLN, USPLNB, USPLNT, and VAISALA_ASC.

Referenced by WXP::LightPlot::setInput(), and WXP::LightPlot::setNameConv().

◆ init()

int LightFile::init ( )

Initializes the object

References NOAA.

Referenced by LightFile(), and LightFile().

◆ isOpen()

bool LightFile::isOpen ( )

Returns true if file is open

Referenced by WXP::LightPlot::draw().

◆ open()

int LightFile::open ( const char *  filename,
int  rtype 
)

◆ read()

int LightFile::read ( LightData data)

The documentation for this class was generated from the following files: