OpenMD 3.1
Molecular Dynamics in the Open
Loading...
Searching...
No Matches
OpenMD::DumpReader Class Referencefinal

#include "io/DumpReader.hpp"

Public Member Functions

 DumpReader (SimInfo *info, const std::string &filename)
 
int getNFrames ()
 Returns the number of frames in the dump file.
 
void setNeedCOMprops (bool ncp)
 
void readFrame (int whichFrame)
 

Protected Member Functions

void scanFile ()
 
void readSet (int whichFrame)
 
void parseDumpLine (const std::string &)
 
void parseSiteLine (const std::string &)
 
void readFrameProperties (std::istream &inputStream)
 
int readStuntDoubles (std::istream &inputStream)
 
void readSiteData (std::istream &inputStream)
 

Protected Attributes

SimInfoinfo_ {nullptr}
 
std::string filename_
 
bool isScanned_
 
int nframes_
 
std::ifstream inFile_
 
std::vector< std::streampos > framePos_
 
bool needPos_
 
bool needVel_
 
bool needQuaternion_
 
bool needAngMom_
 
bool needCOMprops_
 
bool readField_
 
char buffer [bufferSize]
 

Static Protected Attributes

static const int bufferSize = 4096
 

Detailed Description

Todo
get rid of more junk code from DumpReader

Definition at line 67 of file DumpReader.hpp.

Constructor & Destructor Documentation

◆ DumpReader()

OpenMD::DumpReader::DumpReader ( SimInfo * info,
const std::string & filename )

Definition at line 70 of file DumpReader.cpp.

◆ ~DumpReader()

OpenMD::DumpReader::~DumpReader ( )

Definition at line 93 of file DumpReader.cpp.

Member Function Documentation

◆ getNFrames()

int OpenMD::DumpReader::getNFrames ( void )

Returns the number of frames in the dump file.

Definition at line 100 of file DumpReader.cpp.

Referenced by OpenMD::PotDiff::process().

◆ parseDumpLine()

void OpenMD::DumpReader::parseDumpLine ( const std::string & line)
protected

Definition at line 324 of file DumpReader.cpp.

◆ parseSiteLine()

void OpenMD::DumpReader::parseSiteLine ( const std::string & line)
protected

◆ readFrame()

void OpenMD::DumpReader::readFrame ( int whichFrame)

Definition at line 191 of file DumpReader.cpp.

◆ readFrameProperties()

void OpenMD::DumpReader::readFrameProperties ( std::istream & inputStream)
protected

Definition at line 674 of file DumpReader.cpp.

◆ readSet()

void OpenMD::DumpReader::readSet ( int whichFrame)
protected

Definition at line 237 of file DumpReader.cpp.

◆ readSiteData()

void OpenMD::DumpReader::readSiteData ( std::istream & inputStream)
protected

Definition at line 658 of file DumpReader.cpp.

◆ readStuntDoubles()

int OpenMD::DumpReader::readStuntDoubles ( std::istream & inputStream)
protected

Definition at line 633 of file DumpReader.cpp.

◆ scanFile()

void OpenMD::DumpReader::scanFile ( void )
protected

Definition at line 106 of file DumpReader.cpp.

◆ setNeedCOMprops()

void OpenMD::DumpReader::setNeedCOMprops ( bool ncp)
inline

Definition at line 75 of file DumpReader.hpp.

Member Data Documentation

◆ buffer

char OpenMD::DumpReader::buffer[bufferSize]
protected

Definition at line 107 of file DumpReader.hpp.

◆ bufferSize

const int OpenMD::DumpReader::bufferSize = 4096
staticprotected

Definition at line 106 of file DumpReader.hpp.

◆ filename_

std::string OpenMD::DumpReader::filename_
protected

Definition at line 90 of file DumpReader.hpp.

◆ framePos_

std::vector<std::streampos> OpenMD::DumpReader::framePos_
protected

Definition at line 97 of file DumpReader.hpp.

◆ inFile_

std::ifstream OpenMD::DumpReader::inFile_
protected

Definition at line 95 of file DumpReader.hpp.

◆ info_

SimInfo* OpenMD::DumpReader::info_ {nullptr}
protected

Definition at line 88 of file DumpReader.hpp.

◆ isScanned_

bool OpenMD::DumpReader::isScanned_
protected

Definition at line 91 of file DumpReader.hpp.

◆ needAngMom_

bool OpenMD::DumpReader::needAngMom_
protected

Definition at line 102 of file DumpReader.hpp.

◆ needCOMprops_

bool OpenMD::DumpReader::needCOMprops_
protected

Definition at line 103 of file DumpReader.hpp.

◆ needPos_

bool OpenMD::DumpReader::needPos_
protected

Definition at line 99 of file DumpReader.hpp.

◆ needQuaternion_

bool OpenMD::DumpReader::needQuaternion_
protected

Definition at line 101 of file DumpReader.hpp.

◆ needVel_

bool OpenMD::DumpReader::needVel_
protected

Definition at line 100 of file DumpReader.hpp.

◆ nframes_

int OpenMD::DumpReader::nframes_
protected

Definition at line 93 of file DumpReader.hpp.

◆ readField_

bool OpenMD::DumpReader::readField_
protected

Definition at line 104 of file DumpReader.hpp.


The documentation for this class was generated from the following files: