5 #ifndef BALL_FORMAT_DCDFILE_H
6 #define BALL_FORMAT_DCDFILE_H
8 #ifndef BALL_FORMAT_TRAJECTORYFILE_H
12 #ifndef BALL_SYSTEM_BINARYFILEADAPTOR_H
71 bool operator == (
const DCDFile& file)
const;
74 bool isSwappingBytes()
const;
77 bool hasVelocities()
const;
95 virtual bool readHeader();
100 virtual bool writeHeader();
104 virtual bool seekAndWriteHeader();
113 virtual bool append(
const SnapShot& snapshot);
119 virtual bool read(
SnapShot& snapshot);
123 virtual bool flushToDisk(
const std::vector<SnapShot>& buffer);
131 void enableVelocityStorage();
134 void disableVelocityStorage();
144 void writeSize_(
const Size& data)
145 { *this << BinaryFileAdaptor<Size>(data);}
148 void writeFloat_(
const float& data)
149 { *this << BinaryFileAdaptor<float>(data);}
152 void writeVector_(
const vector<Vector3>& v);
161 bool readSize_(
Size expected_size,
const String& what);
164 bool readVector_(vector<Vector3>& v);
208 #endif // BALL_FORMAT_DCDFILE_H