|
MolSim
|
Class used to read and parse XML input data. More...
#include <XMLReader.h>
Public Member Functions | |
| XMLReader (const std::string &filename) | |
| Construct a new XMLReader object. | |
| void | readXML (Arguments &args, ParticleContainer &pc, Thermostat &t, FlowSimulationAnalyzer &fsa) |
| Read and parse the contents of a valid XML file into the given Arguments and ParticleContainer references. | |
Public Member Functions inherited from FileReader | |
| FileReader () | |
| Creates a new FileReader with no file initialized. | |
| FileReader (const std::string &filename) | |
| Creates a new FileReader and opens the file with the given name. | |
| virtual | ~FileReader () |
| Destroys the FileReader object and automatically closes the input stream. | |
| void | openFile (const std::string &filename) |
| Initializes the input stream with the given file (via its name). | |
Private Attributes | |
| std::string | m_filename |
| The name of the XML input file. Must be a valid XML file. | |
Additional Inherited Members | |
Protected Attributes inherited from FileReader | |
| std::ifstream | m_infile |
| Input stream representing the file containing molecule data. | |
Class used to read and parse XML input data.
|
explicit |
Construct a new XMLReader object.
| filename | The name of the XML input file. Must be a valid XML file. |
| void XMLReader::readXML | ( | Arguments & | args, |
| ParticleContainer & | pc, | ||
| Thermostat & | t, | ||
| FlowSimulationAnalyzer & | fsa | ||
| ) |
Read and parse the contents of a valid XML file into the given Arguments and ParticleContainer references.
On error, the program will terminate.
| args | A reference to the Arguments struct which will be modified. |
| pc | A reference to the ParticleContainer object which will be modified. |
| t | A reference to the Thermostat to be initialized. |
| fsa | A reference to the FlowSimulationAnalyzer to be initialized. |
|
private |
The name of the XML input file. Must be a valid XML file.