33 char* objectptr = (
char*)(&
object);
34 size_t size =
sizeof(object);
35 size_t bytes =
static_cast<size_t>(iodevice.write (objectptr,size));
36 return (bytes == size);
48 char* objectptr = (
char*)(&
object);
49 size_t size =
sizeof(object);
50 size_t bytes =
static_cast<size_t>(iodevice.read (objectptr,size));
51 return (bytes == size);
59 template bool InstrumentFileHandler::write<qint32> (QIODevice&,
const qint32&);
60 template bool InstrumentFileHandler::read<qint32> (QIODevice&,
const qint32&);
61 template bool InstrumentFileHandler::write<quint32> (QIODevice&,
const quint32&);
62 template bool InstrumentFileHandler::read<quint32> (QIODevice&,
const quint32&);
63 template bool InstrumentFileHandler::write<double> (QIODevice&,
const double&);
64 template bool InstrumentFileHandler::read<double> (QIODevice&,
const double&);
65 template bool InstrumentFileHandler::write<bool> (QIODevice&,
const bool&);
66 template bool InstrumentFileHandler::read<bool> (QIODevice&,
const bool&);
static bool read(QIODevice &iodevice, const T &object)
static bool write(QIODevice &iodevice, const T &object)