ConstantLine.cc
1.04 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
/*
* ConstantLine.cc
*
* Created on: Jun 26, 2014
* Author: AKKA
*/
#include "ConstantLine.hh"
namespace plot {
std::ostream& operator<<(std::ostream& out_, const ConstantLine& lprop_){
out_ << "[CONSTANT_LINE]" << std::endl;
out_ << "{"<<std::endl;
out_ << " style =" << static_cast<int>(lprop_._style) << std::endl;
out_ << " width =" << lprop_._width << std::endl;
out_ << " " << lprop_._color << std::endl;
out_ << " value =" << lprop_._value << std::endl;
out_ << " id =" << lprop_._id << std::endl;
out_ << "}" << std::endl;
return out_;
}
/*
* Dumps properties for test.
*/
void ConstantLine::dump(std::ostream& out_, std::string& prefix_){
out_ << prefix_ << "constant_line.style=" << static_cast<int>(_style) << std::endl;
out_ << prefix_ << "constant_line.width=" << _width << std::endl;
std::string subPrefix=prefix_+"constant_line.";
_color.dump(out_, subPrefix);
out_ << prefix_ << "constant_line.value=" << _value << std::endl;
out_ << prefix_ << "constant_line.id=" << _id << std::endl;
}
} /* namespace plot */