COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
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

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

Member Function Documentation

int covise::istreamFTN::fail ( )
inline
int covise::istreamFTN::getActualBlockNo ( ) const
inline
int istreamFTN::readFTN ( void data,
int  length 
)
int istreamFTN::readFTN_BS ( void data,
int  length 
)
int istreamFTN::readFTNfloat ( float *  data,
int  num,
int  perBlock 
)
int istreamFTN::readFTNint ( int *  data,
int  num,
int  perBlock 
)
void istreamFTN::rewind ( )

rewind the file : also resets error flag

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

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

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

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

void covise::istreamFTN::setByteSwap ( int  val)
inline
int istreamFTN::skipBlocks ( int  numBlocks)
int covise::istreamFTN::skipBlocks ( int  maxidx,
int  block 
)
inline
int istreamFTN::skipForSize ( int  size)

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

Member Data Documentation

int covise::istreamFTN::d_actBlockNo
private
int covise::istreamFTN::d_byteSwap
private
int covise::istreamFTN::d_errFlag
private
int covise::istreamFTN::d_fileDesc
private

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