VTK  9.7.1
Public Member Functions | Static Public Member Functions | List of all members
BinaryFile Class Reference

#include <BinaryFile.h>

Public Member Functions

 BinaryFile (const char *fname)
 
 ~BinaryFile ()
 
bool good () const
 
template<typename T >
void ReadArray (T *array, size_t nitems)
 
template<typename T >
T ReadOne ()
 
int ReadInt ()
 
double ReadDouble ()
 
void ReadCString (char *s, size_t n=128)
 
std::string ReadStdString ()
 
void SetSwap (bool val)
 

Static Public Member Functions

static int SwapInt (int x)
 

Detailed Description

Definition at line 11 of file BinaryFile.h.

Constructor & Destructor Documentation

BinaryFile::BinaryFile ( const char *  fname)
BinaryFile::~BinaryFile ( )

Member Function Documentation

bool BinaryFile::good ( ) const
template<typename T >
void BinaryFile::ReadArray ( T *  array,
size_t  nitems 
)
inline

Definition at line 20 of file BinaryFile.h.

template<typename T >
T BinaryFile::ReadOne ( )
inline

Definition at line 34 of file BinaryFile.h.

int BinaryFile::ReadInt ( )
double BinaryFile::ReadDouble ( )
void BinaryFile::ReadCString ( char *  s,
size_t  n = 128 
)
std::string BinaryFile::ReadStdString ( )
static int BinaryFile::SwapInt ( int  x)
static
void BinaryFile::SetSwap ( bool  val)

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