5 #ifndef BALL_FORMAT_TRRFILE_H
6 #define BALL_FORMAT_TRRFILE_H
8 #ifndef BALL_FORMAT_TRAJECTORYFILE_H
12 #ifndef BALL_SYSTEM_BINARYFILEADAPTOR_H
139 title_string_length(24),
140 title_string(
"Created by BALL::TRRFile"),
147 velocity_data_size(0),
151 timestep_time(0.002),
178 virtual void clear();
199 virtual bool readHeader();
206 virtual bool writeNextHeader(
const TRRHeader& header);
212 virtual bool readNextHeader(TRRHeader& header);
218 virtual bool append(
const SnapShot& snapshot);
224 virtual bool read(
SnapShot& snapshot);
229 virtual bool skipFrame();
234 virtual Size getNumberOfSnapShots();
242 virtual bool flushToDisk(
const std::vector<SnapShot>& buffer);
250 bool hasVelocities()
const;
253 void setVelocityStorage(
bool storage);
256 bool hasForces()
const;
259 void setForceStorage(
bool storage);
262 Size getPrecision()
const;
265 bool setPrecision(
const Size precision);
268 float getTimestep()
const;
271 void setTimestep(
float timestep);
274 Vector3 getBoundingBoxX()
const;
277 Vector3 getBoundingBoxY()
const;
280 Vector3 getBoundingBoxZ()
const;
323 #endif // BALL_FORMAT_TRRFILE_H
static const double to_angstrom
std::istream & operator>>(std::istream &is, TRegularData1D< ValueType > &grid)
Input operator.
BinaryFileAdaptor< Size > adapt_size_
std::ios::openmode OpenMode
BinaryFileAdaptor< char > adapt_char_
BALL_EXPORT bool operator==(const String &s1, const String &s2)
static const double to_nanometer
BinaryFileAdaptor< double > adapt_double_
BinaryFileAdaptor< float > adapt_float_