TimeTickProperties.cc 1.23 KB
/*
 * TimeTickProperties.cc
 *
 *  Created on: Jul 22, 2014
 *      Author: AKKA
 */

#include "TimeTickProperties.hh"

namespace plot {

std::ostream& operator<<(std::ostream& out_, const TimeTickProperties& prop_) {
	out_ << "[TIMETICK PROPERTIES]" << std::endl;
	out_ << "{" << std::endl;
	out_ << "  step  =" << prop_._step << std::endl;
	out_ << "  number  =" << prop_._number << std::endl;
	out_ << "  minor  =" << prop_._minor << std::endl;
	out_ << "  color  =" << prop_._color << std::endl;
	out_ << "  " << prop_._font << std::endl;
	out_ << "  " << prop_._firstSymbol << std::endl;
	out_ << "  " << prop_._symbol << std::endl;
	out_ << "}" << std::endl;
	return out_;
}

/*
 * Dumps properties for test.
 */
void TimeTickProperties::dump(std::ostream& out_, std::string& prefix_) {
	out_ << "[TIMETICK PROPERTIES]" << std::endl;
	out_ << prefix_ << "timeTick.step=" << _step << std::endl;
	out_ << prefix_ << "timeTick.number=" << _number << std::endl;
	out_ << prefix_ << "timeTick.minor=" << _minor << std::endl;
	out_ << prefix_ << "timeTick.color=" << _color << std::endl;
	std::string subPrefix = prefix_ + "timeTick.";
	_font.dump(out_, subPrefix);
	_firstSymbol.dump(out_, subPrefix);
	_symbol.dump(out_, subPrefix);
}

} /* namespace plot */