Lines Matching refs:std

26       std::string filename(_M_title + ".svg");
27 std::ofstream f(filename);
29 throw std::runtime_error("abigail::svg::write fail");
31 f << _M_sstream.str() << std::endl;
33 catch(std::exception& e)
44 const std::string start = R"_delimiter_(<?xml version="1.0" encoding="utf-8"?>
55 const std::string units("__units");
56 const std::string width("__width");
57 const std::string height("__height");
59 std::string strip = R"_delimiter_(x="0__units" y="0__units"
65 string_replace(strip, width, std::to_string(_M_canvas._M_width));
66 string_replace(strip, height, std::to_string(_M_canvas._M_height));
69 _M_sstream << strip << std::endl;
76 _M_sstream << "</svg>" << std::endl;
82 _M_sstream << "<title>" << _M_title << "</title>" << std::endl;
92 const std::string x("__x");
93 const std::string y("__y");
94 const std::string label("__label");
95 const std::string style("__style");
96 const std::string offset("OFFSET");
97 const std::string size("SIZE");
98 const std::string align("ALIGN");
101 std::string text_strip = R"_delimiter_(<text x="__x" y="__y" transform="rotate(270 __x __y)" __style>__label</text>
105 string_replace(text_strip, y, std::to_string(_M_y_origin - padding));
110 std::string offset_strip = text_strip;
111 string_replace(offset_strip, x, std::to_string(xcur));
115 std::string size_strip = text_strip;
116 string_replace(size_strip, x, std::to_string(xcur));
120 std::string align_strip = text_strip;
121 string_replace(align_strip, x, std::to_string(xcur));
124 _M_sstream << "<g><!-- vertical labels -->" << std::endl;
128 _M_sstream << "</g>" << std::endl;
138 const std::string x("__x");
139 const std::string y1("__y1");
140 const std::string y2("__y2");
142 std::string strip = R"_delimiter_(<path stroke="black" stroke-width="1" d="M __x __y1 L __x __y2"/>
146 string_replace(strip, y1, std::to_string(_M_y_origin - _M_y_space));
147 string_replace(strip, y2, std::to_string(yend));
150 std::string strip_1 = strip;
151 string_replace(strip_1, x, std::to_string(xcur));
154 std::string strip_2 = strip;
155 string_replace(strip_2, x, std::to_string(xcur));
158 std::string strip_3 = strip;
159 string_replace(strip_3, x, std::to_string(xcur));
162 std::string strip_4 = strip;
163 string_replace(strip_4, x, std::to_string(xcur));
166 _M_sstream << "<g><!-- vertical lines -->" << std::endl;
171 _M_sstream << "</g>" << std::endl;
183 std::string chroma;
185 const std::string x("__x");
186 const std::string y("__y");
187 const std::string name("__name");
188 const std::string style("__style");
189 const std::string color("__color");
190 const std::string width("__width");
191 const std::string height("__height");
192 const std::string val("__val");
194 std::string rect_strip = R"_delimiter_(<rect x="__x" y="__y" fill="__color" stroke="__color" stroke-width="1" width="__width" height="__height"/>
199 string_replace(rect_strip, x, std::to_string(xcur));
200 string_replace(rect_strip, y, std::to_string(ycur - (.5 * _M_y_space)));
201 string_replace(rect_strip, width, std::to_string(_M_x_space * 2));
202 string_replace(rect_strip, height, std::to_string(_M_y_space));
207 std::string text_strip = R"_delimiter_(<text x="__x" y="__y" fill="__color" __style>__val</text>
212 std::string offset_strip(text_strip);
215 string_replace(offset_strip, x, std::to_string(xcur));
216 string_replace(offset_strip, y, std::to_string(ycur));
217 string_replace(offset_strip, val, std::to_string(__r._M_offset));
223 std::string size_strip(text_strip);
226 string_replace(size_strip, x, std::to_string(xcur));
227 string_replace(size_strip, y, std::to_string(ycur));
228 string_replace(size_strip, val, std::to_string(__r._M_size));
234 std::string align_strip(text_strip);
236 string_replace(align_strip, x, std::to_string(xcur));
237 string_replace(align_strip, y, std::to_string(ycur));
238 string_replace(align_strip, val, std::to_string(__r._M_align));
245 std::string name_strip(text_strip);
248 string_replace(name_strip, x, std::to_string(xcur));
249 string_replace(name_strip, y, std::to_string(ycur));
256 _M_sstream << "<g><!-- row " << _M_y_size << " -->" << std::endl;
262 _M_sstream << "</g>" << std::endl;