.Simulation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
DataFile.h
Go to the documentation of this file.
1 // DataFile.h - DataFile Class Declaration.
2 // Written By Jesse Z. Zhong
4 #ifndef __DataFile_h__
5 #define __DataFile_h__
6 #pragma region Includes
7 #include "stdafx.h"
8 using namespace std;
9 #pragma endregion
10 
13 namespace DataReader {
24  class DataFile {
25  public:
26  #pragma region Constants
27  static const char* Delimiters;
29  #pragma endregion
30 
36  DataFile(const string& fileName = "") {
37  this->FileName_ = fileName;
38  this->DataStored_ = false;
39  }
40 
42  enum EFileType {
43  RPK,
47  };
48 
53  virtual void Read(const string& fileName) = 0;
54 
56  string GetFileName() const { return this->FileName_; }
57 
59  EFileType GetType() const { return this->Type_; }
60 
62  bool GetDataStored() const { return this->DataStored_; }
63 
64  protected:
66  string FileName_;
67 
70 
73  };
74 }
75 
76 #endif // End: DataFile
EFileType Type_
Indicates the type of data stored.
Definition: DataFile.h:69
bool DataStored_
Flag indicating if data has been stored.
Definition: DataFile.h:72
Record of the position, velocity, and type of each particle in the system.
Definition: DataFile.h:45
EFileType GetType() const
Returns the type of data stored.
Definition: DataFile.h:59
Rayleigh-Plesset predicted trend of the simulation.
Definition: DataFile.h:43
DataFile(const string &fileName="")
Constructor.
Definition: DataFile.h:36
string FileName_
Name of the file that the data is read from.
Definition: DataFile.h:66
bool GetDataStored() const
Returns whether or not data has been stored.
Definition: DataFile.h:62
string GetFileName() const
Returns the name of the file the data was read from.
Definition: DataFile.h:56
EFileType
Lists the type of data the files are storing.
Definition: DataFile.h:42
Periodic snapshot, in the form of metadata, of the MD simulation.
Definition: DataFile.h:44
Base class for reading and storing simulation output.
Definition: DataFile.h:24
Record of the collision information of each particle in the system.
Definition: DataFile.h:46