| 116 | } |
| 117 | |
| 118 | std::ofstream * |
| 119 | Frame::get_ofs_ptr () |
| 120 | { |
| 121 | if (m_out_filename.empty()) { |
| 122 | return nullptr; |
| 123 | } else { |
| 124 | if (!m_out) { |
| 125 | m_out = std::make_unique<std::ofstream>(m_out_filename, std::ios_base::app); |
| 126 | } |
| 127 | return m_out.get(); |
| 128 | } |
| 129 | } |
| 130 | |
| 131 | } |