ErrorBarProperties.cc 1.61 KB
/*
 * 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 */