![]() |
.Simulation
|
Base class for reading and storing simulation output. More...
#include <DataFile.h>
Public Types | |
enum | EFileType { RPK, Snapshot, Savepoint, CollisionEnergy } |
Lists the type of data the files are storing. More... | |
Public Member Functions | |
DataFile (const string &fileName="") | |
Constructor. More... | |
virtual void | Read (const string &fileName)=0 |
Parses a file according to the implementation of a derived file reader. | |
string | GetFileName () const |
Returns the name of the file the data was read from. | |
EFileType | GetType () const |
Returns the type of data stored. | |
bool | GetDataStored () const |
Returns whether or not data has been stored. | |
Static Public Attributes | |
static const char * | Delimiters = " ,\n" |
List of delimiters that are used in files. | |
Protected Attributes | |
string | FileName_ |
Name of the file that the data is read from. | |
EFileType | Type_ |
Indicates the type of data stored. | |
bool | DataStored_ |
Flag indicating if data has been stored. | |
Base class for reading and storing simulation output.
DataFile provides a simple interface for implementing file parsers for different classes of files that are generated by the MD simulation. This base class includes items that are common to all file parsers: a file name, a read method, a read status, and a discernible file type. Get accessors for these items are also predefined in this class.
Lists the type of data the files are storing.
|
inline |
Constructor.
Initializes the file name and read status.
fileName | is the name of the file whose data we are looking to store. |