OpenMD  2.5
Molecular Dynamics in the Open
OpenMD::RestReader Class Reference

#include "io/RestReader.hpp"

Public Member Functions

 RestReader (SimInfo *info, const std::string &filename, std::vector< int > stuntDoubleIndex)
 
void readReferenceStructure (void)
 
 ~RestReader ()
 

Protected Member Functions

void parseDumpLine (const std::string &line)
 
void readStuntDoubles (std::istream &inpuStream)
 
void readFrameProperties (std::istream &inputStream)
 
void scanFile (void)
 
void readSet (void)
 

Private Attributes

SimInfoinfo_
 
std::vector< Vector3dall_pos_
 
std::vector< int > stuntDoubleIndex_
 
std::istream * inFile_
 
std::string filename_
 
long long framePos_
 
char buffer [bufferSize]
 

Static Private Attributes

static const int bufferSize = 4096
 

Detailed Description

Definition at line 60 of file RestReader.hpp.

Constructor & Destructor Documentation

◆ RestReader()

OpenMD::RestReader::RestReader ( SimInfo info,
const std::string &  filename,
std::vector< int >  stuntDoubleIndex 
)
inline

◆ ~RestReader()

OpenMD::RestReader::~RestReader ( )
inline

Member Function Documentation

◆ parseDumpLine()

◆ readFrameProperties()

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

Definition at line 415 of file RestReader.cpp.

References buffer, bufferSize, errorStruct::errMsg, errorStruct::isFatal, painCave, and simError().

Referenced by readSet(), and ~RestReader().

◆ readReferenceStructure()

◆ readSet()

void OpenMD::RestReader::readSet ( void  )
protected

◆ readStuntDoubles()

void OpenMD::RestReader::readStuntDoubles ( std::istream &  inpuStream)
protected

◆ scanFile()

void OpenMD::RestReader::scanFile ( void  )
protected

Definition at line 68 of file RestReader.cpp.

References buffer, bufferSize, framePos_, inFile_, and worldRank.

Referenced by readReferenceStructure(), and ~RestReader().

Member Data Documentation

◆ all_pos_

std::vector<Vector3d> OpenMD::RestReader::all_pos_
private

Definition at line 120 of file RestReader.hpp.

Referenced by parseDumpLine(), and readReferenceStructure().

◆ buffer

char OpenMD::RestReader::buffer[bufferSize]
private

Definition at line 129 of file RestReader.hpp.

Referenced by readFrameProperties(), readSet(), readStuntDoubles(), and scanFile().

◆ bufferSize

const int OpenMD::RestReader::bufferSize = 4096
staticprivate

Definition at line 128 of file RestReader.hpp.

Referenced by readFrameProperties(), readSet(), readStuntDoubles(), and scanFile().

◆ filename_

std::string OpenMD::RestReader::filename_
private

Definition at line 124 of file RestReader.hpp.

Referenced by RestReader().

◆ framePos_

long long OpenMD::RestReader::framePos_
private

Definition at line 126 of file RestReader.hpp.

Referenced by readSet(), and scanFile().

◆ inFile_

std::istream* OpenMD::RestReader::inFile_
private

Definition at line 123 of file RestReader.hpp.

Referenced by readSet(), RestReader(), scanFile(), and ~RestReader().

◆ info_

SimInfo* OpenMD::RestReader::info_
private

Definition at line 118 of file RestReader.hpp.

Referenced by parseDumpLine(), and readReferenceStructure().

◆ stuntDoubleIndex_

std::vector<int> OpenMD::RestReader::stuntDoubleIndex_
private

Definition at line 121 of file RestReader.hpp.


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