14#include "cdm/engine/SEDecimalFormat.h"
23 double probe=std::numeric_limits<double>::quiet_NaN();
39 std::vector<double>
const& GetTimes()
const;
43 void SetFormatting(
const std::string& name, std::streamsize precision);
44 void SetDefaultFormatting(std::streamsize precision);
47 void Probe(
size_t idx,
double value);
49 size_t Probe(
const std::string& name,
double value);
50 size_t Probe(
const std::string& name,
double value,
int i);
56 double GetProbe(
size_t idx);
57 double GetProbe(
const std::string& name);
58 std::string GetProbeName(
size_t idx);
60 void Track(
size_t idx,
double time,
double value);
62 size_t Track(
const std::string& name,
double time,
double value);
66 void Track(
double time,
const SEGasCompartmentGraph& graph, std::vector<SESubstance*>* substances =
nullptr);
70 double GetTrack(
size_t idx,
double time);
71 double GetTrack(
const std::string& name,
double time);
74 std::vector<std::string> ReadTrackFromFile(
const char* fileName);
77 std::vector<std::string> StreamDataFromFile(
const char* fileName);
80 double StreamDataFromFile(std::vector<std::string>* headings);
83 void CreateFile(
const char* fileName, std::ofstream& newFile);
85 void WriteTrackToFile(
const char* fileName);
87 void StreamTrackToFile(std::ofstream& file);
89 void StreamProbesToFile(
double time, std::ofstream& file);
92 Element& GetElement(
size_t idx);
93 Element& GetElement(std::string
const& name);
97 double m_LastTime = -1.0;
99 std::streamsize m_DefaultPrecision = 3;
Definition: DataTrack.h:17
size_t NumTracks()
Definition: DataTrack.h:40
std::vector< Element > ElementVector
Definition: DataTrack.h:27
std::vector< double > m_Times
Definition: DataTrack.h:98
std::ifstream m_FileStream
Definition: DataTrack.h:101
ElementVector m_Elements
Definition: DataTrack.h:94
void Track(size_t idx, double time, double value)
char m_Delimiter
Definition: DataTrack.h:96
void UseCommaDelimiter()
Definition: DataTrack.h:37
void UseTabDelimiter()
Definition: DataTrack.h:36
Definition: SEElectricalCircuit.h:12
Definition: SEFluidCircuit.h:12
Definition: SEGasCompartmentGraph.h:15
Definition: SELiquidCompartmentGraph.h:16
Definition: SESubstance.h:15
Definition: SEThermalCircuit.h:12
Definition: DataTrack.h:20
std::string name
Definition: DataTrack.h:22
SEDecimalFormat format
Definition: DataTrack.h:25
std::vector< double > track
Definition: DataTrack.h:24
size_t idx
Definition: DataTrack.h:21