Blame view

src/ParamOutputImpl/Plot/IntervalTickProperties.cc 1006 Bytes
fbe3c2bb   Benjamin Renard   First commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * IntervalTickProperties.cc
 *
 *  Created on: Jan 26, 2015
 *      Author: AKKA
 */

#include "IntervalTickProperties.hh"

namespace plot {

std::ostream& operator<<(std::ostream& out_, const IntervalTickProperties& prop_) {
	out_ << "[INTERVALTICK PROPERTIES]" << std::endl;
	out_ << "{" << std::endl;
	out_ << "  mode  =" << (int)prop_._mode << std::endl;
	out_ << "  color  =" << prop_._color << std::endl;
f6eaec4e   Benjamin Renard   Optimize plot ele...
17
	out_ << "  font =" << prop_.getFont() << std::endl;
fbe3c2bb   Benjamin Renard   First commit
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
	out_ << "  symbol =" << prop_._symbol << std::endl;
	out_ << "}" << std::endl;
	return out_;
}

/*
 * Dumps properties for test.
 */
void IntervalTickProperties::dump(std::ostream& out_, std::string& prefix_) {
	out_ << "[INTERVALTICK PROPERTIES]" << std::endl;
	out_ << prefix_ << "intervalTick.mode=" << (int)_mode << std::endl;
	out_ << prefix_ << "intervalTick.color=" << _color << std::endl;
	std::string subPrefix = prefix_ + "intervalTick.";
	_font.dump(out_, subPrefix);
	_symbol.dump(out_, subPrefix);
}

} /* namespace plot */