| 54 | } |
| 55 | |
| 56 | void |
| 57 | Writer::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 |
nothing calls this directly
no test coverage detected