#include "mp_simple_types.h"

TQDataStream &operator <<(TQDataStream &s, const EnumClass &ec)
  { s << (TQ_UINT8)ec.f; return s; }
TQDataStream &operator >>(TQDataStream &s, EnumClass &ec) 
  { TQ_UINT8 t; s >> t; ec.f = (int)t; return s; }
