1 #ifndef __JSUPPORT__JDAQFILEREADER__
2 #define __JSUPPORT__JDAQFILEREADER__
20 namespace JPP {
using namespace JSUPPORT; }
34 template<class T, bool = JLANG::JConversion<T,JDAQPreamble>::is_derived>
59 using namespace KM3NETDAQ;
66 this->setstate(ios::badbit);
70 }
else if (preamble.getDataType() == getDataType<T>()) {
72 buffer.resize(preamble.getLength());
Object reading from binary file.
virtual bool setObject(T &object)
Set object.
esac print_variable DETECTOR INPUT_FILE OUTPUT_FILE CDF for TYPE in
Interface for null access.
Binary input based on std::istream.
do set_variable OUTPUT_DIRECTORY $WORKDIR T
Implementation for null iteration.
Simple data structure for the DAQ preamble required for a correct calculation of the object size for ...
std::vector< char > buffer
Interface for object iteration with named access.
DAQ object reading from binary file (i.e. .dat).
size_t getSizeof< JDAQPreamble >()
Get size of type.