/* * SymbolProperties.cc * * Created on: Dec 9, 2013 * Author: amdadev */ #include "SymbolProperties.hh" namespace plot { std::ostream& operator<<(std::ostream& out_, const SymbolProperties& prop_) { out_ << "[SYMBOL PROPERTIES]" << std::endl; out_ << "{" << std::endl; out_ << " type =" << static_cast(prop_._type) << std::endl; out_ << " size =" << prop_._size << std::endl; out_ << " " << prop_._color << std::endl; out_ << "}" << std::endl; return out_; } /* * Dumps properties for test. */ void SymbolProperties::dump(std::ostream& out_, std::string& prefix_) { out_ << "[SYMBOL PROPERTIES]" << std::endl; out_ << prefix_ << "symbole.type=" << static_cast(_type) << std::endl; out_ << prefix_ << "symbole.size=" << _size << std::endl; std::string subPrefix = prefix_ + "symbole."; _color.dump(out_, subPrefix); } } /* namespace plot */