/* * 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 */