TimeTickProperties.cc
1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
* 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_.getFont() << 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 */