OpenMD  2.5
Molecular Dynamics in the Open
OpenMD::SectionParser Class Referenceabstract

#include "io/SectionParser.hpp"

Inheritance diagram for OpenMD::SectionParser:
OpenMD::AtomTypesSectionParser OpenMD::BaseAtomTypesSectionParser OpenMD::BendTypesSectionParser OpenMD::BondTypesSectionParser OpenMD::ChargeAtomTypesSectionParser OpenMD::DirectionalAtomTypesSectionParser OpenMD::EAMAtomTypesSectionParser OpenMD::FluctuatingChargeAtomTypesSectionParser OpenMD::GayBerneAtomTypesSectionParser OpenMD::InversionTypesSectionParser OpenMD::LennardJonesAtomTypesSectionParser OpenMD::MultipoleAtomTypesSectionParser OpenMD::NonBondedInteractionsSectionParser OpenMD::OptionSectionParser OpenMD::PolarizableAtomTypesSectionParser OpenMD::SCAtomTypesSectionParser OpenMD::ShapeAtomTypesSectionParser OpenMD::StickyAtomTypesSectionParser OpenMD::StickyPowerAtomTypesSectionParser OpenMD::TorsionTypesSectionParser

Public Member Functions

virtual ~SectionParser ()
 
void parse (std::istream &input, ForceField &ff, int lineNo)
 
const std::string & getSectionName () const
 
virtual void validateSection ()
 

Protected Member Functions

void setSectionName (const std::string &sectionName)
 

Private Member Functions

bool isEndSection (const std::string &line)
 
virtual void parseLine (ForceField &ff, const std::string &line, int lineNo)=0
 

Private Attributes

std::string sectionName_
 

Detailed Description

Todo:
document

Definition at line 59 of file SectionParser.hpp.

Constructor & Destructor Documentation

◆ ~SectionParser()

virtual OpenMD::SectionParser::~SectionParser ( )
inlinevirtual

Definition at line 61 of file SectionParser.hpp.

References parse().

Member Function Documentation

◆ getSectionName()

const std::string& OpenMD::SectionParser::getSectionName ( ) const
inline

◆ isEndSection()

bool OpenMD::SectionParser::isEndSection ( const std::string &  line)
private

◆ parse()

void OpenMD::SectionParser::parse ( std::istream &  input,
ForceField ff,
int  lineNo 
)

Definition at line 47 of file SectionParser.cpp.

References isEndSection(), parseLine(), and OpenMD::trimLeftCopy().

Referenced by ~SectionParser().

◆ parseLine()

◆ setSectionName()

void OpenMD::SectionParser::setSectionName ( const std::string &  sectionName)
inlineprotected

Definition at line 69 of file SectionParser.hpp.

References isEndSection(), parseLine(), and sectionName_.

Referenced by OpenMD::AtomTypesSectionParser::AtomTypesSectionParser(), OpenMD::BaseAtomTypesSectionParser::BaseAtomTypesSectionParser(), OpenMD::BendTypesSectionParser::BendTypesSectionParser(), OpenMD::BondTypesSectionParser::BondTypesSectionParser(), OpenMD::ChargeAtomTypesSectionParser::ChargeAtomTypesSectionParser(), OpenMD::DirectionalAtomTypesSectionParser::DirectionalAtomTypesSectionParser(), OpenMD::EAMAtomTypesSectionParser::EAMAtomTypesSectionParser(), OpenMD::FluctuatingChargeAtomTypesSectionParser::FluctuatingChargeAtomTypesSectionParser(), OpenMD::GayBerneAtomTypesSectionParser::GayBerneAtomTypesSectionParser(), OpenMD::InversionTypesSectionParser::InversionTypesSectionParser(), OpenMD::LennardJonesAtomTypesSectionParser::LennardJonesAtomTypesSectionParser(), OpenMD::MultipoleAtomTypesSectionParser::MultipoleAtomTypesSectionParser(), OpenMD::NonBondedInteractionsSectionParser::NonBondedInteractionsSectionParser(), OpenMD::OptionSectionParser::OptionSectionParser(), OpenMD::PolarizableAtomTypesSectionParser::PolarizableAtomTypesSectionParser(), OpenMD::SCAtomTypesSectionParser::SCAtomTypesSectionParser(), OpenMD::ShapeAtomTypesSectionParser::ShapeAtomTypesSectionParser(), OpenMD::StickyAtomTypesSectionParser::StickyAtomTypesSectionParser(), OpenMD::StickyPowerAtomTypesSectionParser::StickyPowerAtomTypesSectionParser(), and OpenMD::TorsionTypesSectionParser::TorsionTypesSectionParser().

◆ validateSection()

virtual void OpenMD::SectionParser::validateSection ( )
inlinevirtual

Reimplemented in OpenMD::OptionSectionParser.

Definition at line 67 of file SectionParser.hpp.

Member Data Documentation

◆ sectionName_

std::string OpenMD::SectionParser::sectionName_
private

Definition at line 78 of file SectionParser.hpp.

Referenced by getSectionName(), isEndSection(), and setSectionName().


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