.Simulation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
DataRPK.h
1 // DataRPK.h - DataRPK Class Declaration
2 // Written By Jesse Z. Zhong
3 #ifndef __Data_RPK_H__
4 #define __Data_RPK_H__
5 #pragma region Includes
6 #include <vector>
7 #include "RpkDataPoint.h"
8 #include "DataFile.h"
9 using namespace std;
10 #pragma endregion
11 namespace DataReader {
15  class DataRPK : public DataFile {
16  public:
20  DataRPK();
21 
25  DataRPK(const string& fileName);
26 
30  virtual void Read(const string& fileName);
31 
32  #pragma region Accessors
33 
36  vector<RpkDataPoint>& GetData();
37 
42  RpkDataPoint GetMax() const;
43 
48  RpkDataPoint GetMin() const;
49  #pragma endregion
50  private:
51 
55  RpkDataPoint ReadDataPoint(char* item);
56 
61  void UpdateBounds(const RpkDataPoint& item);
62 
63  // Members
64  vector<RpkDataPoint> RPKList_;
65  RpkDataPoint Max_;
66  RpkDataPoint Min_;
67  };
68 }
69 
73 ostream& operator<<(ostream& out, DataReader::DataRPK& data);
74 #endif
Stores a set of RPK data points.
Definition: DataRPK.h:15
Base class for reading and storing simulation output.
Definition: DataFile.h:24
Stores a single data point of an RPK set of values.
Definition: RpkDataPoint.h:12
ostream & operator<<(ostream &out, DataReader::DataSnapshot &data)
Out stream operator overload for snapshots.
Definition: DataSnapshot.cpp:350