LayoutProperties.cc
1.02 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
/*
* LayoutProperties.cc
*
* Created on: Sep, 2, 2014
* Author: AKKA
*/
#include "LayoutProperties.hh"
namespace plot {
std::ostream& operator<<(std::ostream& out_, const LayoutProperties& lprop_){
out_ << "[LAYOUT PROPERTIES]" << std::endl;
out_ << "{"<<std::endl;
out_ << " type =" << static_cast<int>(lprop_._type) << std::endl;
out_ << " panelHeight =" << lprop_._panelHeight << std::endl;
out_ << " panelSpacing =" << lprop_._panelSpacing << std::endl;
out_ << " expand =" << lprop_._expand << std::endl;
out_ << "}" << std::endl;
return out_;
}
/*
* Dumps properties for test.
*/
void LayoutProperties::dump(std::ostream& out_, std::string& prefix_){
out_ << "[LAYOUT PROPERTIES]" << std::endl;
out_ << prefix_ << "layout.type=" << static_cast<int>(_type) << std::endl;
out_ << prefix_ << "layout.panelHeight=" << _panelHeight << std::endl;
out_ << prefix_ << "layout.panelSpacing=" << _panelSpacing << std::endl;
out_ << prefix_ << "layout.expand=" << _expand << std::endl;
}
} /* namespace plot */