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

This class reads and decodes watch box data from file. More...

#include "../include/WatchFile.h"

Public Member Functions

 WatchFile ()
 
 WatchFile (const char *filename)
 
 WatchFile (Filename &filename)
 
 ~WatchFile ()
 
int init ()
 
int open (const char *filename)
 
int open (Filename &filename)
 
int close ()
 
bool isOpen ()
 
int setDate (Date &rdate)
 
int read (WatchData &watch)
 

Detailed Description

This class reads and decodes watch box data from file.

Author
Dan Vietor

Constructor & Destructor Documentation

◆ WatchFile() [1/3]

WatchFile::WatchFile ( )

Constructor. Initializes class data

References init().

◆ WatchFile() [2/3]

WatchFile::WatchFile ( const char *  filename)

Constructor. Opens file.

Parameters
filenameFile to open

References init(), and open().

◆ WatchFile() [3/3]

WatchFile::WatchFile ( Filename filename)

Constructor. Opens file.

Parameters
filenameFile to open

References init(), and open().

◆ ~WatchFile()

WatchFile::~WatchFile ( )

Destructor.

Member Function Documentation

◆ close()

int WatchFile::close ( )

Closes the file

References WXP::File::close().

Referenced by WXP::WatchPlot::readFile().

◆ init()

int WatchFile::init ( )

Initializes class data

Referenced by WatchFile(), WatchFile(), and WatchFile().

◆ isOpen()

bool WatchFile::isOpen ( )

Is file opened

Returns
True if open

Referenced by WXP::WatchPlot::readFile().

◆ open() [1/2]

int WatchFile::open ( const char *  filename)

Opens a watch file

Parameters
filenameFile to open

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

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

◆ open() [2/2]

int WatchFile::open ( Filename filename)

Opens a watch file

Parameters
filenameFile to open

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

◆ read()

int WatchFile::read ( WatchData watch)

◆ setDate()

int WatchFile::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: