WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
WXP::KmlFile Class Reference

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)

Detailed Description

This class reads in surface data from a WXP formatted file from file.

Author
Dan Vietor

Constructor & Destructor Documentation

◆ KmlFile() [1/3]

KmlFile::KmlFile ( )

Constructor

◆ KmlFile() [2/3]

KmlFile::KmlFile ( const char * filename)

Constructor. Opens the surface data file (access=READ, type=UNK)

Parameters
filenameFile to open

References open().

◆ KmlFile() [3/3]

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

Constructor. Opens the surface data file

Parameters
filenameFile to open
rtypeFile type (NORMAL, COMPRESS)

References open().

◆ ~KmlFile()

KmlFile::~KmlFile ( )

Destructor

References close().

Member Function Documentation

◆ checkType()

int KmlFile::checkType ( const char * filename)
static

Checks the type of data in the file

Parameters
filenameFile to check

References WXP::File::isOpen(), and WXP::File::scanf().

Referenced by open().

◆ close()

int KmlFile::close ( )

Closes the surface data file

Referenced by ~KmlFile().

◆ open() [1/2]

int KmlFile::open ( const char * filename)

Opens the surface data file

Parameters
filenameFile to open

References open().

Referenced by KmlFile(), KmlFile(), and open().

◆ open() [2/2]

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

Opens the surface data file

Parameters
filenameFile to open
rtypeFile type (NORMAL, COMPRESS)

References checkType(), WXP::StrLib::equal(), and WXP::Wxp::outDebug().

◆ read()

int KmlFile::read ( KmlData & data)

Reads a single report/station from the data file

Return values
dataKmlData 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().


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