MolSim
Loading...
Searching...
No Matches
FileReader.h
Go to the documentation of this file.
1
10#pragma once
11
12#include "objects/Cuboid.h"
14#include <fstream>
15#include <string>
16#include <vector>
17
20 protected:
22 std::ifstream m_infile;
23
24 public:
27
33 explicit FileReader(const std::string &filename);
34
36 virtual ~FileReader();
37
43 void openFile(const std::string &filename);
44};
Class storing metadata for a 2D / 3D Particle cuboid.
Class for encapsulating and iterating over multiple Particle objects.
File reader class which implements functionality to read data from input files.
Definition FileReader.h:19
void openFile(const std::string &filename)
Initializes the input stream with the given file (via its name).
virtual ~FileReader()
Destroys the FileReader object and automatically closes the input stream.
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.
std::ifstream m_infile
Input stream representing the file containing molecule data.
Definition FileReader.h:22