.Simulation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
DataVisualizerGUI::DataManager Class Reference

Object used for reading and storing data. More...

#include <DataManager.h>

Inheritance diagram for DataVisualizerGUI::DataManager:

Public Member Functions

 DataManager (QWidget *parent=0)
 Constructor.
 
 ~DataManager ()
 Destructor.
 
void StoreData ()
 Reads and stores all available files in a specified directory.
 
DataRPKGetRPGuess2Data ()
 Returns the RP Guess 2 data. More...
 
DataRPKGetRPActual ()
 Returns the RP Actual data. More...
 
DataSnapshotGetSnapshotData (int index)
 Returns snapshot data at a given index. More...
 
DataSavepointGetSavepointData (int index)
 Returns the save point data at a given index. More...
 
DataCollisionEnergyGetCollisionEnergyData (int index)
 Returns the collision energy data at a given index. More...
 
int GetMaxSets () const
 Returns the maximum number of files in either the snapshot, save point, or collision energy lists.
 
QString GetDirPath () const
 Returns the simulation output directory.
 
void SetDirPath (const QString &dir)
 Sets the simulation output directory.
 

Protected Member Functions

template<typename T >
bool CheckBounds (int index, vector< T > container) const
 Check if an index is within the range of a given container or array.
 

Protected Attributes

DataRPK RPGuess2_
 Holds the RP prediction data set. More...
 
DataRPK RPActual_
 Holds the RP actual data set. More...
 
vector< DataSnapshotSnapshot_
 List of compiled snapshot data. More...
 
vector< DataSavepointSavepoint_
 List of compiled save point data. More...
 
vector< DataCollisionEnergyCollideEnergy_
 List of compiled collision energy data. More...
 
QString DirPath_
 Path of the file directory that the files are read from. More...
 
int MaxSets_
 Records the number of files whole sets stored. More...
 
QWidget * Parent_
 

Detailed Description

Object used for reading and storing data.

Member Function Documentation

DataCollisionEnergy & DataManager::GetCollisionEnergyData ( int  index)

Returns the collision energy data at a given index.

Returns a blank collision energy data if no data is found.

DataRPK & DataManager::GetRPActual ( )

Returns the RP Actual data.

Returns a blank RPK if no data is found.

DataRPK & DataManager::GetRPGuess2Data ( )

Returns the RP Guess 2 data.

Returns a blank RPK if no data is found.

DataSavepoint & DataManager::GetSavepointData ( int  index)

Returns the save point data at a given index.

Returns a blank save point data if no data is found.

DataSnapshot & DataManager::GetSnapshotData ( int  index)

Returns snapshot data at a given index.

Returns a blank snapshot if no data is found.

Member Data Documentation

vector<DataCollisionEnergy> DataVisualizerGUI::DataManager::CollideEnergy_
protected

List of compiled collision energy data.

QString DataVisualizerGUI::DataManager::DirPath_
protected

Path of the file directory that the files are read from.

int DataVisualizerGUI::DataManager::MaxSets_
protected

Records the number of files whole sets stored.

DataRPK DataVisualizerGUI::DataManager::RPActual_
protected

Holds the RP actual data set.

DataRPK DataVisualizerGUI::DataManager::RPGuess2_
protected

Holds the RP prediction data set.

vector<DataSavepoint> DataVisualizerGUI::DataManager::Savepoint_
protected

List of compiled save point data.

vector<DataSnapshot> DataVisualizerGUI::DataManager::Snapshot_
protected

List of compiled snapshot data.


The documentation for this class was generated from the following files: