biogears::DataTrack Class Reference
#include <DataTrack.h>
Inheritance diagram for biogears::DataTrack:

Public Member Functions | |
| DataTrack () | |
| DataTrack (Logger *m_Log) | |
| DataTrack (DataTrack &&)=default | |
| DataTrack & | operator= (DataTrack &&)=default |
| ~DataTrack () | |
| void | Clear () |
| void | Reset () |
| void | UseTabDelimiter () |
| void | UseCommaDelimiter () |
| std::vector< std::string > & | GetHeadings () |
| void | SetFormatting (const std::string &name, const SEDecimalFormat &f) |
| void | SetFormatting (const std::string &name, std::streamsize precision) |
| void | SetDefaultFormatting (std::streamsize precision) |
| void | Probe (const std::string &name, double value, int i) |
| void | Probe (const std::string &name, double value) |
| void | Probe (const std::string &name, std::vector< double > &values) |
| void | Probe (const SEFluidCircuit &c) |
| void | Probe (const SEElectricalCircuit &c) |
| void | Probe (const SEThermalCircuit &c) |
| void | Probe (const SELiquidCompartmentGraph &graph) |
| double | GetProbe (const std::string &name) |
| ProbeMap * | GetProbes () |
| void | Track (const std::string &name, double time, double value) |
| void | Track (double time, const SEElectricalCircuit &circuit) |
| void | Track (double time, const SEFluidCircuit &circuit) |
| void | Track (double time, const SEThermalCircuit &circuit) |
| void | Track (double time, const SEGasCompartmentGraph &graph, std::vector< SESubstance * > *substances=nullptr) |
| void | Track (double time, const SELiquidCompartmentGraph &graph, std::vector< SESubstance * > *substances=nullptr) |
| std::vector< std::string > | ReadTrackFromFile (const char *fileName) |
| std::vector< std::string > | StreamDataFromFile (const char *fileName) |
| double | StreamDataFromFile (std::vector< std::string > *headings) |
| double | GetTrack (const std::string &name, double time) |
| std::vector< double > * | GetTrack (const std::string &name) |
| std::vector< double > & | GetTimes () |
| void | CreateFile (const char *fileName, std::ofstream &newFile, std::ios_base::openmode mode=std::ios_base::trunc) |
| void | CreateFile (const std::string &fileName, std::ofstream &newFile, std::ios_base::openmode mode=std::ios_base::trunc) |
| void | WriteTrackToFile (const char *fileName, std::ios_base::openmode mode=std::ios_base::trunc) |
| void | StreamTrackToFile (std::ofstream &file) |
| void | StreamProbesToFile (double time, std::ofstream &file) |
Public Member Functions inherited from biogears::Loggable | |
| Loggable () | |
| Loggable (Logger *log) | |
| virtual | ~Loggable () |
| virtual Logger * | GetLogger () const |
Protected Attributes | |
| TrackMap | m_Track |
| ProbeMap | m_Probe |
| FormattingMap | m_Formatting |
| char | m_Delimiter |
| double | m_LastTime = -1.0 |
| std::vector< double > | m_Time |
| std::vector< std::string > | m_HeadingOrder |
| std::streamsize | m_DefaultPrecision = 3 |
| std::ifstream | m_FileStream |
Protected Attributes inherited from biogears::Loggable | |
| Logger * | m_Logger |
Additional Inherited Members | |
Static Public Attributes inherited from biogears::Loggable | |
| static const std::string | empty |
| static const char * | empty_cStr |
Protected Member Functions inherited from biogears::Loggable | |
| virtual void | Debug (const char *msg, const char *origin="") const |
| virtual void | Debug (const std::string &msg, const std::string &origin=empty) const |
| virtual void | Debug (std::ostream &msg, const std::string &origin=empty) const |
| virtual void | Info (const char *msg, const char *origin="") const |
| virtual void | Info (const std::string &msg, const std::string &origin=empty) const |
| virtual void | Info (std::ostream &msg, const std::string &origin=empty) const |
| virtual void | Warning (const char *msg, const char *origin="") const |
| virtual void | Warning (const std::string &msg, const std::string &origin=empty) const |
| virtual void | Warning (std::ostream &msg, const std::string &origin=empty) const |
| virtual void | Error (const char *msg, const char *origin="") const |
| virtual void | Error (const std::string msg, const std::string origin=empty) const |
| virtual void | Error (std::ostream &msg, const std::string &origin=empty) const |
| virtual void | Fatal (const char *msg, const char *origin="") const |
| virtual void | Fatal (const std::string &msg, const std::string &origin=empty) const |
| virtual void | Fatal (std::ostream &msg, const std::string &origin=empty) const |
Constructor & Destructor Documentation
| biogears::DataTrack::DataTrack | ( | ) |
| biogears::DataTrack::DataTrack | ( | Logger * | m_Log | ) |
|
default |
| biogears::DataTrack::~DataTrack | ( | ) |
Member Function Documentation
| void biogears::DataTrack::Clear | ( | ) |
| void biogears::DataTrack::CreateFile | ( | const char * | fileName, |
| std::ofstream & | newFile, | ||
| std::ios_base::openmode | mode = std::ios_base::trunc |
||
| ) |
| void biogears::DataTrack::CreateFile | ( | const std::string & | fileName, |
| std::ofstream & | newFile, | ||
| std::ios_base::openmode | mode = std::ios_base::trunc |
||
| ) |
| std::vector< std::string > & biogears::DataTrack::GetHeadings | ( | ) |
| double biogears::DataTrack::GetProbe | ( | const std::string & | name | ) |
| ProbeMap * biogears::DataTrack::GetProbes | ( | ) |
| std::vector< double > & biogears::DataTrack::GetTimes | ( | ) |
| double biogears::DataTrack::GetTrack | ( | const std::string & | name, |
| double | time | ||
| ) |
| std::vector< double > * biogears::DataTrack::GetTrack | ( | const std::string & | name | ) |
| void biogears::DataTrack::Probe | ( | const std::string & | name, |
| double | value, | ||
| int | i | ||
| ) |
| void biogears::DataTrack::Probe | ( | const std::string & | name, |
| double | value | ||
| ) |
| void biogears::DataTrack::Probe | ( | const std::string & | name, |
| std::vector< double > & | values | ||
| ) |
| void biogears::DataTrack::Probe | ( | const SEFluidCircuit & | c | ) |
| void biogears::DataTrack::Probe | ( | const SEElectricalCircuit & | c | ) |
| void biogears::DataTrack::Probe | ( | const SEThermalCircuit & | c | ) |
| void biogears::DataTrack::Probe | ( | const SELiquidCompartmentGraph & | graph | ) |
| std::vector< std::string > biogears::DataTrack::ReadTrackFromFile | ( | const char * | fileName | ) |
| void biogears::DataTrack::Reset | ( | ) |
| void biogears::DataTrack::SetDefaultFormatting | ( | std::streamsize | precision | ) |
| void biogears::DataTrack::SetFormatting | ( | const std::string & | name, |
| const SEDecimalFormat & | f | ||
| ) |
| void biogears::DataTrack::SetFormatting | ( | const std::string & | name, |
| std::streamsize | precision | ||
| ) |
| std::vector< std::string > biogears::DataTrack::StreamDataFromFile | ( | const char * | fileName | ) |
| double biogears::DataTrack::StreamDataFromFile | ( | std::vector< std::string > * | headings | ) |
| void biogears::DataTrack::StreamProbesToFile | ( | double | time, |
| std::ofstream & | file | ||
| ) |
| void biogears::DataTrack::StreamTrackToFile | ( | std::ofstream & | file | ) |
| void biogears::DataTrack::Track | ( | const std::string & | name, |
| double | time, | ||
| double | value | ||
| ) |
| void biogears::DataTrack::Track | ( | double | time, |
| const SEElectricalCircuit & | circuit | ||
| ) |
| void biogears::DataTrack::Track | ( | double | time, |
| const SEFluidCircuit & | circuit | ||
| ) |
| void biogears::DataTrack::Track | ( | double | time, |
| const SEThermalCircuit & | circuit | ||
| ) |
| void biogears::DataTrack::Track | ( | double | time, |
| const SEGasCompartmentGraph & | graph, | ||
| std::vector< SESubstance * > * | substances = nullptr |
||
| ) |
| void biogears::DataTrack::Track | ( | double | time, |
| const SELiquidCompartmentGraph & | graph, | ||
| std::vector< SESubstance * > * | substances = nullptr |
||
| ) |
|
inline |
|
inline |
| void biogears::DataTrack::WriteTrackToFile | ( | const char * | fileName, |
| std::ios_base::openmode | mode = std::ios_base::trunc |
||
| ) |
Member Data Documentation
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |


Public Member Functions inherited from