#ifndef __JDAQTRIGGERMASK_IO__ #define __JDAQTRIGGERMASK_IO__ #include "km3net-dataformat/online/JDAQTriggerMask.hh" #include "JIO/JSerialisable.hh" /** * \author mdejong */ namespace KM3NETDAQ { /** * Get size of type. * * \return number of bytes */ template<> inline size_t getSizeof() { return sizeof(JDAQTriggerMask::trigger_mask); } /** * Read DAQ trigger mask from input. * * \param in reader * \param mask DAQ trigger mask * \return reader */ inline JReader& operator>>(JReader& in, JDAQTriggerMask& mask) { in >> mask.trigger_mask; return in; } /** * Write DAQ trigger mask to output. * * \param out writer * \param mask DAQ trigger mask * \return writer */ inline JWriter& operator<<(JWriter& out, const JDAQTriggerMask& mask) { out << mask.trigger_mask; return out; } } #endif