OpenMD  2.5
Molecular Dynamics in the Open
FilenameObserver Class Reference

#include <FilenameObserver.hpp>

Public Member Functions

 FilenameObserver ()
void setParser (MDParser *parser)
void setLexer (MDLexer *lexer)
void notify (const std::string &filename)

Private Attributes


Detailed Description

Definition at line 47 of file FilenameObserver.hpp.

Constructor & Destructor Documentation

◆ FilenameObserver()

FilenameObserver::FilenameObserver ( )

Definition at line 5 of file FilenameObserver.cpp.

Member Function Documentation

◆ notify()

void FilenameObserver::notify ( const std::string &  filename)

Definition at line 8 of file FilenameObserver.cpp.

References lexer_, and parser_.

Referenced by MDLexer::mLineDirective().

◆ setLexer()

void FilenameObserver::setLexer ( MDLexer lexer)

Definition at line 7 of file FilenameObserver.cpp.

References lexer_.

Referenced by OpenMD::SimCreator::parseFile().

◆ setParser()

void FilenameObserver::setParser ( MDParser parser)

Definition at line 6 of file FilenameObserver.cpp.

References parser_.

Referenced by OpenMD::SimCreator::parseFile().

Member Data Documentation

◆ lexer_

MDLexer* FilenameObserver::lexer_

Definition at line 55 of file FilenameObserver.hpp.

Referenced by notify(), and setLexer().

◆ parser_

MDParser* FilenameObserver::parser_

Definition at line 54 of file FilenameObserver.hpp.

Referenced by notify(), and setParser().

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