#include <TRRFile.h>
Inheritance diagram for TRRFile:
Public Member Functions | |
Constructors and Destructor | |
TRRFile () throw () | |
Default constructor. | |
TRRFile (const TRRFile &file) throw (Exception::FileNotFound) | |
Copy constructor. | |
TRRFile (const String &name, File::OpenMode open_mode=std::ios::in) throw () | |
Construct and open a file. | |
virtual | ~TRRFile () throw () |
Destructor. | |
Assignment | |
const TRRFile & | operator= (const TRRFile &file) throw () |
Assignment operator. | |
virtual void | clear () throw () |
Clear method. | |
Predicates | |
bool | operator== (const TRRFile &file) const throw () |
Equality operator. | |
Public methods for file handling | |
virtual bool | init () throw () |
Initialize the file for usage. | |
virtual bool | writeNextHeader (const TRRHeader &header) throw () |
Writes the next header that shall preceed the next data block. | |
virtual bool | readNextHeader (TRRHeader &header) throw () |
Reads the next header preceding the next data block. | |
virtual bool | append (const SnapShot &snapshot) throw () |
Append a SnapShot to an existing file. | |
virtual bool | read (SnapShot &snapshot) throw () |
Read the next snapshot from the file. | |
virtual TRRFile & | operator>> (SnapShotManager &ssm) throw () |
Read the whole file into a SnapShotManager. | |
virtual bool | flushToDisk (const std::vector< SnapShot > &buffer) throw (File::CannotWrite) |
Write several SnapShots to disk. | |
Accessors | |
bool | hasVelocities () const throw () |
void | setVelocityStorage (bool storage) throw () |
bool | hasForces () const throw () |
void | setForceStorage (bool storage) throw () |
Size | getPrecision () const throw () |
bool | setPrecision (const Size precision) throw () |
float | getTimestep () const throw () |
void | setTimestep (float timestep) throw () |
Vector3 | getBoundingBoxX () const throw () |
Vector3 | getBoundingBoxY () const throw () |
Vector3 | getBoundingBoxZ () const throw () |
void | setBoundingBox (const Vector3 &x, const Vector3 &y, const Vector3 &z) throw () |
Protected Attributes | |
TRRHeader | header_ |
Size | precision_ |
bool | has_velocities_ |
bool | has_forces_ |
Size | timestep_index_ |
float | timestep_ |
Vector3 | box1_ |
Vector3 | box2_ |
Vector3 | box3_ |
This class enables BALL to read and write GROMACS TRR files. This format is portable.
|
Append a SnapShot to an existing file.
Reimplemented from TrajectoryFile. |
|
Write several SnapShots to disk.
Reimplemented from TrajectoryFile. |
|
Read the next snapshot from the file.
Reimplemented from TrajectoryFile. |
|
Reads the next header preceding the next data block.
|
|
Writes the next header that shall preceed the next data block.
|