#include <BALL/FORMAT/TRRFile.h>
List of all members.
Detailed Description
TRR Trajectory file format. This class enables BALL to read and write GROMACS TRR files. This format is portable.
- In a TRR file, each timestep is preceded by a header. The header is handled by the nested TRRHeader class.
Definition at line 28 of file TRRFile.h.
Constructor & Destructor Documentation
BALL::TRRFile::TRRFile |
( |
|
) |
|
Construct and open a file.
virtual BALL::TRRFile::~TRRFile |
( |
|
) |
[virtual] |
Member Function Documentation
virtual bool BALL::TRRFile::append |
( |
const SnapShot & |
snapshot |
) |
[virtual] |
virtual void BALL::TRRFile::clear |
( |
|
) |
[virtual] |
virtual bool BALL::TRRFile::flushToDisk |
( |
const std::vector< SnapShot > & |
buffer |
) |
[virtual] |
Vector3 BALL::TRRFile::getBoundingBoxX |
( |
|
) |
const |
Vector3 BALL::TRRFile::getBoundingBoxY |
( |
|
) |
const |
Vector3 BALL::TRRFile::getBoundingBoxZ |
( |
|
) |
const |
Size BALL::TRRFile::getPrecision |
( |
|
) |
const |
float BALL::TRRFile::getTimestep |
( |
|
) |
const |
bool BALL::TRRFile::hasForces |
( |
|
) |
const |
bool BALL::TRRFile::hasVelocities |
( |
|
) |
const |
virtual bool BALL::TRRFile::init |
( |
|
) |
[virtual] |
Initialize the file for usage.
const TRRFile& BALL::TRRFile::operator= |
( |
const TRRFile & |
file |
) |
[private] |
bool BALL::TRRFile::operator== |
( |
const TRRFile & |
file |
) |
const |
virtual bool BALL::TRRFile::read |
( |
SnapShot & |
snapshot |
) |
[virtual] |
Read the next snapshot from the file
- Parameters:
-
| snapshot | a buffer for result delivery |
- Returns:
- true, if a snapshot could be read, false otherwise.
Reimplemented from BALL::TrajectoryFile.
virtual bool BALL::TRRFile::readNextHeader |
( |
TRRHeader & |
header |
) |
[virtual] |
Reads the next header preceding the next data block.
- Parameters:
-
| header | a buffer for result delivery |
- Returns:
- true, if a header could be read, false ow.
void BALL::TRRFile::setForceStorage |
( |
bool |
storage |
) |
|
bool BALL::TRRFile::setPrecision |
( |
const Size |
precision |
) |
|
void BALL::TRRFile::setTimestep |
( |
float |
timestep |
) |
|
void BALL::TRRFile::setVelocityStorage |
( |
bool |
storage |
) |
|
virtual bool BALL::TRRFile::writeNextHeader |
( |
const TRRHeader & |
header |
) |
[virtual] |
Writes the next header that shall preceed the next data block.
- Parameters:
-
- Returns:
- true, if a header could be written, false ow.
Member Data Documentation