SILICON
Loading...
Searching...
No Matches
graphicalLogStream.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <QObject>
4
5#include <boost/log/sinks/sink.hpp>
6#include <boost/shared_ptr.hpp>
7
8
9namespace SILICON::ui {
10
11class GraphicalLogStream : public QObject {
12 Q_OBJECT
13
14public:
15 explicit GraphicalLogStream(QObject* parent = nullptr);
16 ~GraphicalLogStream() override;
17
18 void attachToBoostLog();
19 void detachFromBoostLog();
20
21signals:
22 void lineReceived(QString line);
23
24private:
25 boost::shared_ptr<boost::log::sinks::sink> sink;
26};
27
28} // namespace SILICON::ui
boost::shared_ptr< boost::log::sinks::sink > sink
void lineReceived(QString line)
GraphicalLogStream(QObject *parent=nullptr)