MCPcopy Create free account
hub / github.com/KLayout/klayout / write

Method write

src/db/db/dbNetlistSpiceWriter.cc:273–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271}
272
273void 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
299std::string NetlistSpiceWriter::net_to_string (const db::Net *net) const
300{

Callers

nothing calls this directly

Calls 5

verbosityFunction · 0.85
attach_writerMethod · 0.80
to_stringFunction · 0.70
trFunction · 0.50
pathMethod · 0.45

Tested by

no test coverage detected