| 10 | pFormatter_{ std::move(pFormatter) } |
| 11 | {} |
| 12 | void MsvcDebugDriver::Submit(const Entry& e) |
| 13 | { |
| 14 | if (pFormatter_) { |
| 15 | OutputDebugStringA(pFormatter_->Format(e).c_str()); |
| 16 | } |
| 17 | else { |
| 18 | pmlog_panic_("BasicFileDriver submitted to without a formatter set"); |
| 19 | } |
| 20 | } |
| 21 | void MsvcDebugDriver::SetFormatter(std::shared_ptr<ITextFormatter> pFormatter) |
| 22 | { |
| 23 | pFormatter_ = std::move(pFormatter); |