ErrorBarProperties.cc
1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
* ErrorBarProperties.cc
*
* Created on: Jul 22, 2014
* Author: AKKA
*/
#include "ErrorBarProperties.hh"
namespace plot {
std::ostream& operator<<(std::ostream& out_, const ErrorMinMaxProperties& prop_) {
out_ << "[ERROR MINMAX PROPERTIES]" << std::endl;
out_ << "{" << std::endl;
out_ << " _originalParamMin " << prop_._originalParamMin << std::endl;
out_ << " _originalParamMax " << prop_._originalParamMax << std::endl;
out_ << " _usedParamMin " << prop_._usedParamMin << std::endl;
out_ << " _usedParamMax " << prop_._usedParamMax << std::endl;
out_ << "}" << std::endl;
return out_;
}
void ErrorMinMaxProperties::dump(std::ostream& out_, std::string& /*prefix_*/) {
out_ << "[ERROR MINMAX PROPERTIES]" << std::endl;
out_ << " _originalParamMin = "<< _originalParamMin << std::endl;
out_ << " _originalParamMax = "<< _originalParamMax << std::endl;
out_ << " _usedParamMin = "<< _usedParamMin << std::endl;
out_ << " _usedParamMax = "<< _usedParamMax << std::endl;
}
std::ostream& operator<<(std::ostream& out_, const ErrorBarProperties& prop_) {
out_ << "[ERRORBAR PROPERTIES]" << std::endl;
out_ << "{" << std::endl;
out_ << " " << prop_._lineProperties << std::endl;
if (prop_._errorMinMax != nullptr)
out_ << " " << *prop_._errorMinMax << std::endl;
out_ << "}" << std::endl;
return out_;
}
void ErrorBarProperties::dump(std::ostream& out_, std::string& prefix_) {
out_ << "[ERRORBAR PROPERTIES]" << std::endl;
std::string subPrefix = prefix_ + "errorBar.";
_lineProperties.dump(out_, subPrefix);
if (_errorMinMax != nullptr)
_errorMinMax->dump(out_, subPrefix);
}
} /* namespace plot */