WXP C++ Library Version 6.74.9
|
This class reads in surface data from a WXP formatted file from file. More...
#include "../include/KmlFile.h"
Public Types | |
enum | { UNK , NORM , COMPRESS } |
Public Member Functions | |
KmlFile () | |
KmlFile (const char *filename) | |
KmlFile (const char *filename, int rtype) | |
~KmlFile () | |
bool | isOpen () |
int | open (const char *filename) |
int | open (const char *filename, int rtype) |
int | close () |
int | read (KmlData &data) |
Static Public Member Functions | |
static int | checkType (const char *filename) |
This class reads in surface data from a WXP formatted file from file.
KmlFile::KmlFile | ( | ) |
Constructor
KmlFile::KmlFile | ( | const char * | filename | ) |
KmlFile::KmlFile | ( | const char * | filename, |
int | rtype | ||
) |
KmlFile::~KmlFile | ( | ) |
Destructor
References close().
|
static |
Checks the type of data in the file
filename | File to check |
References WXP::File::isOpen(), and WXP::File::scanf().
Referenced by open().
int KmlFile::close | ( | ) |
Closes the surface data file
Referenced by ~KmlFile().
int KmlFile::open | ( | const char * | filename | ) |
int KmlFile::open | ( | const char * | filename, |
int | rtype | ||
) |
Opens the surface data file
References checkType(), WXP::StrLib::equal(), and WXP::Wxp::outDebug().
int KmlFile::read | ( | KmlData & | data | ) |
Reads a single report/station from the data file
data | KmlData class to put the data from the file |
References WXP::StrLib::equal(), WXP::KmlData::init(), WXP::EarthPoint::lat, WXP::EarthPoint::lon, and WXP::Wxp::outDebug().
Referenced by WXP::MapFile::readHeader().