VTK  9.5.20251208
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>
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::BinaryFile ( const char * fname)

◆ ~BinaryFile()

BinaryFile::~BinaryFile ( )

Member Function Documentation

◆ good()

bool BinaryFile::good ( ) const

◆ ReadArray()

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

Definition at line 20 of file BinaryFile.h.

◆ ReadOne()

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

Definition at line 34 of file BinaryFile.h.

◆ ReadInt()

int BinaryFile::ReadInt ( )

◆ ReadDouble()

double BinaryFile::ReadDouble ( )

◆ ReadCString()

void BinaryFile::ReadCString ( char * s,
size_t n = 128 )

◆ ReadStdString()

std::string BinaryFile::ReadStdString ( )

◆ SwapInt()

static int BinaryFile::SwapInt ( int x)
static

◆ SetSwap()

void BinaryFile::SetSwap ( bool val)

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