OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ResultPipeline.h
Go to the documentation of this file.
1#pragma once
6
7#include <vector>
8#include <string>
9
11{
12public:
13 ResultPipeline(ResultSource * source, ResultSink * sink);
15 {
16 for (auto filter : _resultFilters)
17 {
18 delete filter;
19 }
20 delete _sink;
21 delete _source;
22 };
23
24 void AddResultFilter(ResultFilter * filter);
25 void Execute(int currentTimestep);
26 ResultSink * GetSink() { return _sink; }
27
28 void SetResultName(std::string resultName) { _resultName = resultName; }
29 void SetResultLegendLabel(std::string label) { _resultLegendLabel = label; }
30 void SetResultTitle(std::string title) { _resultTitle = title; }
31 void SetLabelYAxis(std::string label) { _labelYAxis = label; }
32 void SetUnitYAxis(std::string label) { _unitYAxis = label; }
33 void SetLabelXAxis(std::string label) { _labelXAxis = label; }
34 void SetUnitXAxis(std::string label) { _unitXAxis = label; }
35
36
37 const std::string GetResultName() const { return _resultName; }
38 const std::string GetResultLegendLabel() const { return _resultLegendLabel; }
39 const std::string GetResultTitle() const { return _resultTitle; }
40
41 const std::string GetLabelYAxis() const { return _labelYAxis; }
42 const std::string GetUnitYAxis() const { return _unitYAxis; }
43 const std::string GetLabelXAxis() const { return _labelXAxis; }
44 const std::string GetUnitXAxis() const { return _unitXAxis; }
45
46private:
47 std::string _resultName;
48 std::string _resultLegendLabel;
49 std::string _resultTitle;
50
51 std::string _labelYAxis;
52 std::string _labelXAxis;
53 std::string _unitYAxis;
54 std::string _unitXAxis;
55
56 std::vector<ResultFilter*> _resultFilters;
57 ResultSink * _sink;
58 ResultSource * _source;
59};
Definition ResultFilter.h:7
Definition ResultPipeline.h:11
ResultSink * GetSink()
Definition ResultPipeline.h:26
const std::string GetUnitXAxis() const
Definition ResultPipeline.h:44
void SetResultTitle(std::string title)
Definition ResultPipeline.h:30
void AddResultFilter(ResultFilter *filter)
Definition ResultPipeline.cpp:12
const std::string GetUnitYAxis() const
Definition ResultPipeline.h:42
void SetResultName(std::string resultName)
Definition ResultPipeline.h:28
~ResultPipeline()
Definition ResultPipeline.h:14
ResultPipeline(ResultSource *source, ResultSink *sink)
Definition ResultPipeline.cpp:5
void SetResultLegendLabel(std::string label)
Definition ResultPipeline.h:29
const std::string GetLabelYAxis() const
Definition ResultPipeline.h:41
void SetUnitYAxis(std::string label)
Definition ResultPipeline.h:32
const std::string GetResultTitle() const
Definition ResultPipeline.h:39
const std::string GetResultName() const
Definition ResultPipeline.h:37
const std::string GetLabelXAxis() const
Definition ResultPipeline.h:43
const std::string GetResultLegendLabel() const
Definition ResultPipeline.h:38
void SetUnitXAxis(std::string label)
Definition ResultPipeline.h:34
void SetLabelXAxis(std::string label)
Definition ResultPipeline.h:33
void SetLabelYAxis(std::string label)
Definition ResultPipeline.h:31
void Execute(int currentTimestep)
Definition ResultPipeline.cpp:20
Definition ResultSink.h:9
Definition ResultSource.h:9