22 #ifndef __PLUMED_tools_IFile_h
23 #define __PLUMED_tools_IFile_h
51 size_t llread(
char*,
size_t);
61 unsigned findField(
const std::string&name)
const;
bool FieldExist(const std::string &s)
Check if a field exist.
IFile & getline(std::string &)
Get a full line as a string.
unsigned findField(const std::string &name) const
Find field index by name.
std::vector< Field > fields
All the defined fields.
A class for holding the value of a function together with its derivatives.
bool inMiddleOfField
Flag set in the middle of a field reading.
void reset(bool)
Reset end of file.
IFile & open(const std::string &name)
Opens the file.
IFile & advanceField()
Advance to next field (= read one line)
IFile & scanField()
Ends a field-formatted line.
bool ignoreFields
Set to true if you want to allow fields to be ignored in the read in file.
size_t llread(char *, size_t)
Low-level read.
Base class for dealing with files.
IFile & scanFieldList(std::vector< std::string > &)
Gets the list of all fields.
void allowIgnoredFields()
Allow some of the fields in the input to be ignored.