载入中...
搜索中...
未找到
StderrCapture.hpp
浏览该文件的文档.
1#pragma once
2
36#include <functional>
37#include <string>
38
39#include "common/Export.h"
40
41namespace eve::dev {
42
44using StderrLineSink = std::function<void(const std::string&)>;
45
49 Active,
54};
55
64
67
70
71} // namespace eve::dev
#define EVENGINE_API_FOUNDATION
每个链接组(link group)各自的导出宏。
Definition Export.h:106
std::function< void(const std::string &)> StderrLineSink
Sink invoked on the drain thread for every complete stderr line.
StderrCaptureStatus
Outcome of a capture request.
void stopStderrCapture()
Restore stderr and join the drain thread. No-op when inactive.
bool stderrCaptureActive()
Whether stderr is currently mirrored into a sink.
StderrCaptureStatus startStderrCapture(StderrLineSink sink)
Start mirroring stderr into sink.