MCPcopy Create free account
hub / github.com/OpenMW/openmw / Tee

Class Tee

components/debug/debugging.cpp:315–334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)

Callers 2

setupLoggingFunction · 0.85
wrapApplicationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected