|
Mechanics of Defect Evolution Library
|
A class template that reads generic binary files containing arrays of DataType elements. More...
#include <BinaryFileReader.h>
Public Member Functions | |
| BinaryFileReader (const std::string &filename) | |
| size_t | bytes () const |
| const bool & | success () const |
A class template that reads generic binary files containing arrays of DataType elements.
remember that there are 8 bytes in a double so, for example, if double fnum[4] = {9.5, -3.4, 1.0, 2.1}; then sizeof(fnum) is 32
Definition at line 29 of file BinaryFileReader.h.
|
inline |
| [in] | filename | The name of the file to be read The constructor reads the file filename and stores DataType elements in its internal array. |
Definition at line 40 of file BinaryFileReader.h.
|
inline |
The number of bytes in the file read
Definition at line 86 of file BinaryFileReader.h.
|
inline |
The number of bytes in the file read
Definition at line 92 of file BinaryFileReader.h.