WXP::Lev2File Class Reference

This class reads and decodes NIDS data from file. More...

#include "../include/Lev2File.h"

List of all members.

Public Types

enum  Type { RAW, COMP }
enum  DataType { REF, VEL, SPECT }

Public Member Functions

 Lev2File ()
 Lev2File (const char *filename, int rtype)
 ~Lev2File ()
int init ()
int open (const char *filename, int rtype)
int close ()
bool isOpen ()
int readData ()
int readBytes (unsigned char *data, int dsize)
int bseek (int byte)
int boffset (int byte)
int getByte ()
int getUByte ()
int getShort ()
int getLong ()
float getFloat ()
int setId (const char *rid)
const char * getId ()
int setDataType (int type)
int getNumData ()
int setCompress (int val)
int getCompress ()
int getHeader (Lev2Info &info)
int getBlock (Lev2Data &data)
int nextBlock ()
float getData ()
bool hasRef ()
bool hasVel ()
bool hasSpect ()

Detailed Description

This class reads and decodes NIDS data from file.

Author:
Dan Vietor

Constructor & Destructor Documentation

Lev2File::Lev2File (  ) 

Constructor. Initializes class data

References init().

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

Constructor. Opens file.

Parameters:
filename File to open

References init(), and open().

Lev2File::~Lev2File (  ) 

Destructor.


Member Function Documentation

int Lev2File::close (  ) 

Closes the file

References WXP::File::close().

int Lev2File::getByte (  ) 

Reads in a byte value

int Lev2File::getLong (  ) 

Reads in a integer value (4 bytes)

int Lev2File::getShort (  ) 

Reads in a short value (2 bytes)

int Lev2File::getUByte (  ) 

Reads in a byte value

int Lev2File::init (  ) 

Initializes class data

Referenced by Lev2File().

bool Lev2File::isOpen (  ) 

Is file opened

Returns:
True if open

Referenced by WXP::Lev2Plot::draw(), and WXP::Lev2Plot::getDomain().

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

Opens a NIDS file

Parameters:
filename File to open

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

Referenced by WXP::Lev2Plot::draw(), WXP::Lev2Plot::getDomain(), and Lev2File().


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

Generated on 8 Jan 2010 for WXP C++ Library by  doxygen 1.6.1