#ifndef __JDAQHEADER__ #define __JDAQHEADER__ #include #include "JIO/JSerialisable.hh" #include "JDAQ/JDAQRoot.hh" #include "JDAQ/JDAQChronometer.hh" namespace KM3NETDAQ { namespace { using JIO::JReader; using JIO::JWriter; } /** * DAQ header. */ class JDAQHeader : public JDAQChronometer { public: /** * Default constructor. */ JDAQHeader() : JDAQChronometer() {} /** * Constructor. * * \param chronometer chronometer */ JDAQHeader(const JDAQChronometer& chronometer) : JDAQChronometer(chronometer) {} /** * Read DAQ header from input. * * \param in JReader * \param header JDAQHeader * \return JReader */ friend inline JReader& operator>>(JReader& in, JDAQHeader& header) { in >> static_cast(header); return in; } /** * Write DAQ header to output. * * \param out JWriter * \param header JDAQHeader * \return JWriter */ friend inline JWriter& operator<<(JWriter& out, const JDAQHeader& header) { out << static_cast(header); return out; } /** * Get size of object. * * \return number of bytes */ static int sizeOf() { return (JDAQChronometer::sizeOf()); } ClassDef(JDAQHeader,1); }; } #endif