#include <DCDFile.h>
Inheritance diagram for DCDFile:
Public Member Functions | |
Constructors and Destructor | |
DCDFile () throw () | |
Default constructor. | |
DCDFile (const DCDFile &file) throw (Exception::FileNotFound) | |
Copy constructor. | |
DCDFile (const String &name, File::OpenMode open_mode=std::ios::in) throw (Exception::FileNotFound) | |
Detailed constructor. | |
virtual | ~DCDFile () throw () |
Destructor. | |
Assignment | |
const DCDFile & | operator= (const DCDFile &file) throw () |
Assignment operator. | |
virtual void | clear () throw () |
Clear method. | |
Predicates | |
bool | operator== (const DCDFile &file) const throw () |
Equality operator. | |
bool | isSwappingBytes () const throw () |
bool | hasVelocities () const throw () |
Public methods for file handling | |
virtual bool | open (const String &name, File::OpenMode open_mode=std::ios::in) throw (Exception::FileNotFound) |
open a DCDFile | |
bool | init () throw () |
Initialize this instance, i. | |
virtual bool | readHeader () throw () |
Read the header of an existing file. | |
virtual bool | writeHeader () throw () |
Write a header Return true if the header could be written successfully, false ow. | |
virtual bool | seekAndWriteHeader () throw () |
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 bool | flushToDisk (const std::vector< SnapShot > &buffer) throw (File::CannotWrite) |
Write several SnapShots to disk. | |
Accessors | |
void | enableVelocityStorage () throw () |
void | disableVelocityStorage () throw () |
Protected Member Functions | |
void | writeSize_ (const Size &data) throw () |
void | writeFloat_ (const float &data) throw () |
void | writeVector_ (const vector< Vector3 > &v) throw () |
float | readFloat_ () throw () |
Size | readSize_ () throw () |
bool | readSize_ (Size expected_size, const String &what) throw () |
bool | readVector_ (vector< Vector3 > &v) throw () |
Protected Attributes | |
Size | verbosity_ |
bool | swap_bytes_ |
bool | has_velocities_ |
bool | charmm_extra_block_A_ |
bool | charmm_extra_block_B_ |
String | CORD_ |
Size | step_number_of_starting_time_ |
Size | steps_between_saves_ |
double | time_step_length_ |
Size | number_of_comments_ |
Position | current_snapshot_ |
BinaryFileAdaptor< Size > | adapt_size_ |
BinaryFileAdaptor< float > | adapt_float_ |
This class enables BALL to write DCD files that can be read by VMD. The format stems from the xplor package. This format is NOT portable.
|
Append a SnapShot to an existing file. Note that this method does not update the header.
Reimplemented from TrajectoryFile. |
|
Write several SnapShots to disk.
Reimplemented from TrajectoryFile. |
|
Initialize this instance, i. e. read the header and update members |
|
Read the next snapshot from the file.
Reimplemented from TrajectoryFile. |
|
Read the header of an existing file. Return true if the header could be read successfully, false ow. Reimplemented from TrajectoryFile. |
|
Write a header Return true if the header could be written successfully, false ow.
Reimplemented from TrajectoryFile. |