#ifndef __BinaryLogReader_h_ #define __BinaryLogReader_h_ #include #include "DataFormat.h" // Read from the log file. This reports bad state in the standard ios way: // o fail means that this read failed, but future reads might make sense. // o bad means future reads do not make sense. // o eof means that we were at the end of the file when we started to read. // We don't check for eof after the read. eof in the middle of the read // will be translated to bad. // On error both of these will set record to null. I think that's // non-standard. I can't find a reference, but I think the standard >> // operators will leave the right hand side unchanged in case of error. std::istream &operator >>(std::istream &stream, Record::Ref &record); #endif