Refactor PotentialFileReader

This commit is contained in:
Richard Berger
2020-06-02 14:18:11 -04:00
parent 60f17e7397
commit 24a0933e2a
4 changed files with 278 additions and 81 deletions

View File

@ -21,15 +21,17 @@
#include <string>
#include "pointers.h"
#include "text_file_reader.h"
namespace LAMMPS_NS
{
class PotentialFileReader : protected Pointers {
std::string potential_name;
TextFileReader * reader;
std::string filename;
static const int MAXLINE = 1024;
char line[MAXLINE];
FILE *fp;
std::string potential_name;
TextFileReader * open_potential(const std::string& path);
std::string get_potential_date(const std::string & path);
public:
PotentialFileReader(class LAMMPS *lmp, const std::string &filename, const std::string &potential_name);