SmartSpectra C++ SDK
Measure human vitals from video with SmartSpectra C++ SDK.
Loading...
Searching...
No Matches
core_log_sink.hpp
1
//
2
// Created by greg on 8/5/25.
3
// Copyright (c) 2025 Presage Technologies
4
//
5
// SPDX-License-Identifier: LGPL-3.0-or-later
6
7
#pragma once
8
// === standard library includes (if any) ===
9
#include <atomic>
10
// === third-party includes (if any) ===
11
#include <reproc++/reproc.hpp>
12
// === local includes (if any) ===
13
#include "log_buffer.hpp"
14
15
namespace
presage::smartspectra::grpc_bindings {
16
17
class
CoreLogSink {
18
public
:
19
explicit
CoreLogSink(
LogBuffer
& buffer, std::atomic<bool>& shutdown)
noexcept
;
20
21
std::error_code operator()(reproc::stream stream,
const
uint8_t *buffer_line,
size_t
size);
22
private
:
23
LogBuffer
& buffer;
24
std::atomic<bool>& shutdown;
25
};
26
27
}
// namespace presage::smartspectra::grpc_bindings
presage::smartspectra::grpc_bindings::LogBuffer
Definition
log_buffer.hpp:21