extracted eventdiskwriter.h stuff to .cc