SpectroProperties.cc 1.45 KB
/*
 * SpectroProperties.cc
 *
 *  Created on: Jul 1, 2014
 *      Author: AKKA
 */
#include "SpectroProperties.hh"
#include "DrawingProperties.hh"
#include <sstream>

namespace plot {

/*
 * Dumps properties for test.
 */
void SpectroProperties::dump(std::ostream& out_, std::string& prefix_) {
	out_ << "[SPECTRO PROPERTIES]" << std::endl;
	out_ << prefix_ << "xAxisId=" << getXAxisId() << std::endl;
	out_ << prefix_ << "yAxisId=" << getYAxisId() << std::endl;
	out_ << prefix_ << "zAxisId=" << getZAxisId() << std::endl;
	out_ << prefix_ << "paramId=" << getParamId() << std::endl;
	out_ << prefix_ << "indexDef=" << getIndexDef() << std::endl;
	out_ << prefix_ << "relatedDim=" << getRelatedDim() << std::endl;
	out_ << prefix_ << "useLog0AsMin=" << getUseLog0AsMin() << std::endl;
	getColor().dump(out_, prefix_);
}

std::ostream& operator<<(std::ostream& out_, const SpectroProperties& prop_) {
	out_ << "[SPECTRO PROPERTIES]" << std::endl;
	out_ << "{" << std::endl;
	out_ << "  xAxis Id = " << prop_.getXAxisId() << std::endl;
	out_ << "  yAxis Id = " << prop_.getYAxisId() << std::endl;
	out_ << "  zAxis Id = " << prop_.getZAxisId() << std::endl;
	out_ << "  default color = " << prop_.getColor() << std::endl;
	out_ << "  indexDef = " << prop_.getIndexDef() << std::endl;
	out_ << "  relatedDim = " << prop_.getRelatedDim() << std::endl;
	out_ << "  useLog0AsMin = " << prop_.getUseLog0AsMin() << std::endl;
	
	out_ << "}" << std::endl;
	return out_;
}

}  // namespace plot