#include <file.h>
Public Member Functions | |
Constructors and destructor | |
BinaryFileAdaptor () throw () | |
Default constructor. | |
BinaryFileAdaptor (const T &data) throw () | |
Detailed constructor. | |
Accessors | |
void | setData (const T &data) throw () |
Sets the member data to the desired value. | |
const T & | getData () const throw () |
Returns a const reference to the data stored in the adaptor. | |
T & | getData () throw () |
Returns a mutable reference to the data stored in the adaptor. | |
Protected Attributes | |
T | data_ |
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.
|
Sets the member
|