WXP C++ Library Version 6.74.9
|
This class reads in Redbook formatted data. More...
#include "../include/RedbookFile.h"
Public Member Functions | |
RedbookFile () | |
RedbookFile (const char *file) | |
~RedbookFile () | |
int | open (const char *file) |
int | close () |
bool | isOpen () |
int | readHeader () |
int | getPi () |
int | getDate (Date &rdate) |
int | readPacket (RedbookPacket &pack) |
int | procPacket (RedbookPacket &pack) |
int | plotParam (RedbookPacket &pack, RedbookPlotParam ¶m) |
int | vector (RedbookPacket &pack, RedbookVector &vect) |
int | text (RedbookPacket &pack, RedbookText &text) |
This class reads in Redbook formatted data.
RedbookFile::RedbookFile | ( | ) |
Constructor.
RedbookFile::RedbookFile | ( | const char * | filename | ) |
RedbookFile::~RedbookFile | ( | ) |
Destructor
References WXP::File::close().
int RedbookFile::close | ( | ) |
Closes the flie
References WXP::File::close().
int RedbookFile::getPi | ( | ) |
Returns the projection indicator (1 or 2)
Referenced by WXP::RedbookPlot::getDomain().
bool RedbookFile::isOpen | ( | ) |
Returns whether file is open
Referenced by WXP::RedbookPlot::draw(), and WXP::RedbookPlot::getDomain().
int RedbookFile::open | ( | const char * | filename | ) |
Opens file
filename | File name |
References WXP::FileTool::getModTime(), WXP::File::isOpen(), WXP::File::open(), and WXP::Date::set().
Referenced by RedbookFile().
int RedbookFile::plotParam | ( | RedbookPacket & | pack, |
RedbookPlotParam & | param | ||
) |
Parse plot parameter data
pack | Input packet data |
param | Output plot param data |
References WXP::StrLib::copy(), and WXP::Wxp::outDebug().
Referenced by WXP::RedbookPlot::draw().
int RedbookFile::procPacket | ( | RedbookPacket & | pack | ) |
int RedbookFile::readHeader | ( | ) |
Reads in redbook header
References WXP::Date::adjustMinute(), WXP::String::getChar(), WXP::File::getLine(), WXP::File::isOpen(), WXP::Wxp::outDebug(), WXP::Wxp::outMessage(), WXP::Wxp::outWarning(), readPacket(), and WXP::File::rewind().
Referenced by WXP::RedbookPlot::draw(), and WXP::RedbookPlot::getDomain().
int RedbookFile::readPacket | ( | RedbookPacket & | pack | ) |
Reads in redbook packet
pack | Packet data |
References WXP::File::read().
Referenced by WXP::RedbookPlot::draw(), and readHeader().
int RedbookFile::text | ( | RedbookPacket & | pack, |
RedbookText & | text | ||
) |
Parse text data
pack | Packet data |
text | Output text data |
References WXP::StrLib::copy(), WXP::Wxp::outDebug(), text(), WXP::Point::x, and WXP::Point::y.
Referenced by WXP::RedbookPlot::draw(), and text().
int RedbookFile::vector | ( | RedbookPacket & | pack, |
RedbookVector & | vect | ||
) |
Parses vector data
pack | Packet data |
vect | Output vector data |
References WXP::Points::add(), WXP::Points::clear(), WXP::RedbookVector::flag, WXP::Points::getX(), WXP::Points::getY(), WXP::RedbookVector::num, WXP::Wxp::outDebug(), and WXP::RedbookVector::pts.
Referenced by WXP::RedbookPlot::draw().