| 271 | } |
| 272 | |
| 273 | void NetlistSpiceWriter::write (tl::OutputStream &stream, const db::Netlist &netlist, const std::string &description) |
| 274 | { |
| 275 | tl::SelfTimer timer (tl::verbosity () >= 21, tl::to_string (tr ("Writing netlist ")) + stream.path ()); |
| 276 | |
| 277 | mp_stream = &stream; |
| 278 | mp_netlist = &netlist; |
| 279 | mp_delegate->attach_writer (this); |
| 280 | |
| 281 | try { |
| 282 | |
| 283 | do_write (description); |
| 284 | |
| 285 | mp_stream = 0; |
| 286 | mp_netlist = 0; |
| 287 | mp_delegate->attach_writer (0); |
| 288 | |
| 289 | } catch (...) { |
| 290 | |
| 291 | mp_stream = 0; |
| 292 | mp_netlist = 0; |
| 293 | mp_delegate->attach_writer (0); |
| 294 | throw; |
| 295 | |
| 296 | } |
| 297 | } |
| 298 | |
| 299 | std::string NetlistSpiceWriter::net_to_string (const db::Net *net) const |
| 300 | { |
nothing calls this directly
no test coverage detected