#include <file.h>

Public Member Functions |
|
|
Constructors and destructor
|
|
| BinaryFileAdaptor () | |
| Default constructor. |
|
| BinaryFileAdaptor (const T &data, bool swap_endian=false) | |
| Detailed constructor. |
|
|
Accessors
|
|
| void | setSwapEndian (bool swap_endian) |
| Set the swap_endian flag. |
|
| bool | getSwapEndian () const |
| return the swap_endian
flag |
|
| void | setData (const T &data) |
Sets the member data to
the desired value. |
|
| const T & | getData () const |
| Returns a const reference to the
data stored in the adaptor. |
|
| T & | getData () |
| Returns a mutable reference to the
data stored in the adaptor. |
|
Protected Attributes |
|
| T | data_ |
| bool | swap_endian_ |
BinaryFileAdaptors are used to read and write binary data
from and to streams. This is done by reading the member
data as a byte stream through an explicit cast and
utilizing the stream read() and write() functions.
| void BALL::BinaryFileAdaptor< T >::setData | ( | const T & | data | ) |
Sets the member data to the desired
value.
| data | data of type T |
Referenced by BALL::TRegularData3D< ValueType >::binaryWrite(), BALL::TRegularData2D< ValueType >::binaryWrite(), and BALL::TRegularData1D< ValueType >::binaryWrite().
1.5.8