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

Method write

src/db/db/dbWriter.cc:56–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56void
57Writer::write (db::Layout &layout, tl::OutputStream &stream)
58{
59 tl::SelfTimer timer (tl::verbosity () >= 21, tl::to_string (tr ("Writing file: ")) + stream.path ());
60
61 if (layout.under_construction () && layout.update_needed ()) {
62 tl::warn << tl::to_string (tr ("Cannot properly write a layout that is under construction - forcing update."));
63 layout.force_update ();
64 }
65
66 tl_assert (mp_writer != 0);
67 mp_writer->write (layout, stream, m_options);
68}
69
70}
71

Callers

nothing calls this directly

Calls 6

verbosityFunction · 0.85
update_neededMethod · 0.80
to_stringFunction · 0.70
trFunction · 0.50
pathMethod · 0.45
force_updateMethod · 0.45

Tested by

no test coverage detected