| 313 | |
| 314 | template <class First, class Second> |
| 315 | class Tee : public DebugOutputBase |
| 316 | { |
| 317 | public: |
| 318 | explicit Tee(First first, Second second) |
| 319 | : mFirst(first) |
| 320 | , mSecond(second) |
| 321 | { |
| 322 | } |
| 323 | |
| 324 | std::streamsize writeImpl(const char* str, std::streamsize size, Level debugLevel) override |
| 325 | { |
| 326 | mFirst.write(str, size, debugLevel); |
| 327 | mSecond.write(str, size, debugLevel); |
| 328 | return size; |
| 329 | } |
| 330 | |
| 331 | private: |
| 332 | First mFirst; |
| 333 | Second mSecond; |
| 334 | }; |
| 335 | #endif |
| 336 | |
| 337 | Level toLevel(std::string_view value) |
no outgoing calls
no test coverage detected