41 #ifndef SVDATASETBUILDER_H_
42 #define SVDATASETBUILDER_H_
44 #include "SVDataSet.h"
45 #include "ReducibleDataSource.h"
66 SVDataSource* createSVDataSource(std::string name, TDataSource<int>* intDataSource, Op op) {
67 return new ReducibleDataSource<Op, int> (name, intDataSource, op);
86 SVDataSource* createSVDataSource(std::string name, TDataSource<double>* doubleDataSource, Op op) {
87 return new ReducibleDataSource<Op, double> (name, doubleDataSource, op);
SVDataSetBuilder & addDataSource(SVDataSource *source)
Adds a DataSource to the DataSet produced by this builder.
Definition: SVDataSetBuilder.cpp:51
SVDataSet * createDataSet()
Creates the DataSource defined by this builder.
Definition: SVDataSetBuilder.cpp:57
The simulation schedule queue.
Definition: Schedule.h:173
Encapsulates data recording to a single plain text file, separating the recorded values using a speci...
Definition: SVDataSet.h:62
Data source for data to be written into separated-value data sets.
Definition: SVDataSource.h:54
SVDataSetBuilder(const std::string &file, const std::string &separator, const Schedule &schedule)
Creates a SVDataSetBuilder that will create a SVDataSet that will write to the specified file and use...
Definition: SVDataSetBuilder.cpp:46
Used to build SVDataSets to record data in plain text tabular format.
Definition: SVDataSetBuilder.h:103