5 #ifndef BALL_FORMAT_DCDFILE_H
6 #define BALL_FORMAT_DCDFILE_H
8 #ifndef BALL_FORMAT_TRAJECTORYFILE_H
12 #ifndef BALL_SYSTEM_BINARYFILEADAPTOR_H
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();
145 { *this << BinaryFileAdaptor<Size>(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
Size steps_between_saves_
void writeSize_(const Size &data)
Position current_snapshot_
std::ios::openmode OpenMode
BinaryFileAdaptor< Size > adapt_size_
void writeFloat_(const float &data)
bool charmm_extra_block_A_
BinaryFileAdaptor< float > adapt_float_
BALL_EXPORT bool operator==(const String &s1, const String &s2)
bool charmm_extra_block_B_
Size step_number_of_starting_time_