COVISE Core
Public Member Functions | Private Attributes | List of all members
covise::istreamFTN Class Reference

#include <istreamFTN.h>

Public Member Functions

 istreamFTN (int filedes)
 
 ~istreamFTN ()
 
int readFTN (void *data, int length)
 
int readFTN_BS (void *data, int length)
 
int skipBlocks (int numBlocks)
 
int skipBlocks (int maxidx, int block)
 
int readFTNfloat (float *data, int num, int perBlock)
 
int readFTNint (int *data, int num, int perBlock)
 
int getActualBlockNo () const
 
int fail ()
 
int scanForSizeFloat (float *data, int num)
 scan forward until you find a block of the apprpriate size, then read it More...
 
int scanForSizeInt (int *data, int num)
 scan forward until you find a block of the apprpriate size, then read it More...
 
int skipForSize (int size)
 skip forward behind a block of the given size: return 0 in success More...
 
void rewind ()
 rewind the file : also resets error flag More...
 
void setByteSwap (int val)
 

Private Attributes

int d_actBlockNo
 
int d_fileDesc
 
int d_errFlag
 
int d_byteSwap
 

Constructor & Destructor Documentation

◆ istreamFTN()

covise::istreamFTN::istreamFTN ( int  filedes)
inline

◆ ~istreamFTN()

covise::istreamFTN::~istreamFTN ( )
inline

Member Function Documentation

◆ fail()

int covise::istreamFTN::fail ( )
inline

◆ getActualBlockNo()

int covise::istreamFTN::getActualBlockNo ( ) const
inline

◆ readFTN()

int istreamFTN::readFTN ( void data,
int  length 
)

◆ readFTN_BS()

int istreamFTN::readFTN_BS ( void data,
int  length 
)

◆ readFTNfloat()

int istreamFTN::readFTNfloat ( float *  data,
int  num,
int  perBlock 
)

◆ readFTNint()

int istreamFTN::readFTNint ( int *  data,
int  num,
int  perBlock 
)

◆ rewind()

void istreamFTN::rewind ( )

rewind the file : also resets error flag

◆ scanForSizeFloat()

int istreamFTN::scanForSizeFloat ( float *  data,
int  num 
)

scan forward until you find a block of the apprpriate size, then read it

◆ scanForSizeInt()

int istreamFTN::scanForSizeInt ( int *  data,
int  num 
)

scan forward until you find a block of the apprpriate size, then read it

◆ setByteSwap()

void covise::istreamFTN::setByteSwap ( int  val)
inline

◆ skipBlocks() [1/2]

int covise::istreamFTN::skipBlocks ( int  maxidx,
int  block 
)
inline

◆ skipBlocks() [2/2]

int istreamFTN::skipBlocks ( int  numBlocks)

◆ skipForSize()

int istreamFTN::skipForSize ( int  size)

skip forward behind a block of the given size: return 0 in success

Member Data Documentation

◆ d_actBlockNo

int covise::istreamFTN::d_actBlockNo
private

◆ d_byteSwap

int covise::istreamFTN::d_byteSwap
private

◆ d_errFlag

int covise::istreamFTN::d_errFlag
private

◆ d_fileDesc

int covise::istreamFTN::d_fileDesc
private

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