#include "io/DumpReader.hpp"
- Todo
- get rid of more junk code from DumpReader
Definition at line 67 of file DumpReader.hpp.
◆ DumpReader()
| OpenMD::DumpReader::DumpReader |
( |
SimInfo * | info, |
|
|
const std::string & | filename ) |
◆ ~DumpReader()
| OpenMD::DumpReader::~DumpReader |
( |
| ) |
|
◆ getNFrames()
| int OpenMD::DumpReader::getNFrames |
( |
void | | ) |
|
◆ parseDumpLine()
| void OpenMD::DumpReader::parseDumpLine |
( |
const std::string & | line | ) |
|
|
protected |
◆ parseSiteLine()
| void OpenMD::DumpReader::parseSiteLine |
( |
const std::string & | line | ) |
|
|
protected |
The first token is the global integrable object index.
Test to see if the next token is an integer or not. If not, we've got data on the integrable object itself. If there is an integer, we're parsing data for a site on a rigid body.
The next token contains information on what follows.
Definition at line 515 of file DumpReader.cpp.
References OpenMD::StringTokenizer::countTokens(), OpenMD::RigidBody::getAtoms(), OpenMD::RigidBody::getNumAtoms(), OpenMD::StuntDouble::isAtom(), OpenMD::StuntDouble::isRigidBody(), OpenMD::StringTokenizer::nextToken(), OpenMD::StringTokenizer::nextTokenAsDouble(), OpenMD::StringTokenizer::nextTokenAsInt(), OpenMD::StringTokenizer::peekNextToken(), OpenMD::StuntDouble::setDensity(), OpenMD::StuntDouble::setElectricField(), OpenMD::StuntDouble::setFlucQFrc(), OpenMD::StuntDouble::setFlucQPos(), OpenMD::StuntDouble::setFlucQVel(), OpenMD::StuntDouble::setParticlePot(), and OpenMD::StuntDouble::setSitePotential().
◆ readFrame()
| void OpenMD::DumpReader::readFrame |
( |
int | whichFrame | ) |
|
◆ readFrameProperties()
| void OpenMD::DumpReader::readFrameProperties |
( |
std::istream & | inputStream | ) |
|
|
protected |
◆ readSet()
| void OpenMD::DumpReader::readSet |
( |
int | whichFrame | ) |
|
|
protected |
◆ readSiteData()
| void OpenMD::DumpReader::readSiteData |
( |
std::istream & | inputStream | ) |
|
|
protected |
◆ readStuntDoubles()
| int OpenMD::DumpReader::readStuntDoubles |
( |
std::istream & | inputStream | ) |
|
|
protected |
◆ scanFile()
| void OpenMD::DumpReader::scanFile |
( |
void | | ) |
|
|
protected |
◆ setNeedCOMprops()
| void OpenMD::DumpReader::setNeedCOMprops |
( |
bool | ncp | ) |
|
|
inline |
◆ buffer
| char OpenMD::DumpReader::buffer[bufferSize] |
|
protected |
◆ bufferSize
| const int OpenMD::DumpReader::bufferSize = 4096 |
|
staticprotected |
◆ filename_
| std::string OpenMD::DumpReader::filename_ |
|
protected |
◆ framePos_
| std::vector<std::streampos> OpenMD::DumpReader::framePos_ |
|
protected |
◆ inFile_
| std::ifstream OpenMD::DumpReader::inFile_ |
|
protected |
◆ info_
| SimInfo* OpenMD::DumpReader::info_ {nullptr} |
|
protected |
◆ isScanned_
| bool OpenMD::DumpReader::isScanned_ |
|
protected |
◆ needAngMom_
| bool OpenMD::DumpReader::needAngMom_ |
|
protected |
◆ needCOMprops_
| bool OpenMD::DumpReader::needCOMprops_ |
|
protected |
◆ needPos_
| bool OpenMD::DumpReader::needPos_ |
|
protected |
◆ needQuaternion_
| bool OpenMD::DumpReader::needQuaternion_ |
|
protected |
◆ needVel_
| bool OpenMD::DumpReader::needVel_ |
|
protected |
◆ nframes_
| int OpenMD::DumpReader::nframes_ |
|
protected |
◆ readField_
| bool OpenMD::DumpReader::readField_ |
|
protected |
The documentation for this class was generated from the following files: