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

This class reads and decodes profiler. More...

#include "../include/ProfFile.h"

Public Types

enum  Type { BUFR , NETCDF }

Public Member Functions

 ProfFile ()
 ProfFile (const char *filename)
 ProfFile (Filename &filename)
 ~ProfFile ()
int init ()
int checkType (const char *filename)
int open (const char *filename)
int open (Filename &filename)
int close ()
bool isOpen ()
int setDate (Date &rdate)
int read (ProfData &data)

Detailed Description

This class reads and decodes profiler.

Author
Dan Vietor

Constructor & Destructor Documentation

◆ ProfFile() [1/3]

ProfFile::ProfFile ( )

Constructor. Initializes class data

References init().

◆ ProfFile() [2/3]

ProfFile::ProfFile ( const char * filename)

Constructor. Opens file.

Parameters
filenameFile to open

References init(), and open().

◆ ProfFile() [3/3]

ProfFile::ProfFile ( Filename & filename)

Constructor. Opens file.

Parameters
filenameFile to open

References init(), and open().

◆ ~ProfFile()

ProfFile::~ProfFile ( )

Destructor.

Member Function Documentation

◆ checkType()

int ProfFile::checkType ( const char * filename)

Checks the type of data in the file

Parameters
filenameFile to check

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

◆ close()

int ProfFile::close ( )

Closes the file

◆ init()

int ProfFile::init ( )

Initializes class data

Referenced by ProfFile(), ProfFile(), and ProfFile().

◆ isOpen()

bool ProfFile::isOpen ( )

Is file opened

Returns
True if open

◆ open() [1/2]

int ProfFile::open ( const char * filename)

Opens a watch file

Parameters
filenameFile to open

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

◆ open() [2/2]

int ProfFile::open ( Filename & filename)

Opens a watch file

Parameters
filenameFile to open

References WXP::Filename::getDate(), WXP::Filename::getName(), and open().

◆ read()

int ProfFile::read ( ProfData & data)

Reads and decodes the data

Return values
watchProfiler data
Returns
1 if still processing data, 0 if at end of file

References WXP::BufrData::getMajor(), WXP::BufrData::getMinor(), WXP::BufrData::getNumber(), WXP::BufrData::getValue(), WXP::ProfData::init(), WXP::EarthPoint::lat, WXP::EarthPoint::lon, and WXP::BufrData::print().

◆ setDate()

int ProfFile::setDate ( Date & rdate)

Sets the base date. Used to get year and month to supplement infor in file.

Parameters
rdateDate

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