IntervalsProperties.cc 911 Bytes
/*
 * IntervalsProperties.cc
 *
 *  Created on: Feb 4, 2019
 *      Author: AKKA
 */
#include "IntervalsProperties.hh"
#include "DrawingProperties.hh"
#include <sstream>

namespace plot {

/*
 * Dumps properties for test.
 */
void IntervalsProperties::dump(std::ostream& out_, std::string& prefix_) {
	out_ << "[INTERVALS PROPERTIES]" << std::endl;
	out_ << prefix_ << "xAxisId=" << getXAxisId() << std::endl;
	out_ << prefix_ << "paramId=" << getParamId() << std::endl;
	out_ << prefix_ << "index=" << getIndexDef() << std::endl;
	getColor().dump(out_, prefix_);
}

std::ostream& operator<<(std::ostream& out_, const IntervalsProperties& prop_) {
	out_ << "[INTERVALS PROPERTIES]" << std::endl;
	out_ << "{" << std::endl;
	out_ << "  xAxis Id = " << prop_.getXAxisId() << std::endl;
	out_ << "  index = " << prop_.getIndexDef() << std::endl;
	
	out_ << "}" << std::endl;
	return out_;
}

}  // namespace plot