Refactor PotentialFileReader

This commit is contained in:
Richard Berger
2020-06-02 15:11:30 -04:00
parent 24a0933e2a
commit d478ad2ccb
2 changed files with 8 additions and 7 deletions

View File

@ -26,19 +26,20 @@
namespace LAMMPS_NS
{
class PotentialFileReader : protected Pointers {
protected:
TextFileReader * reader;
std::string filename;
std::string potential_name;
std::string filetype;
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);
~PotentialFileReader();
virtual ~PotentialFileReader();
void skip_line();
char * next_line(int nparams);
char * next_line(int nparams = 0);
void next_dvector(int n, double * list);
};