SILICON
Toggle main menu visibility
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
9
namespace
SILICON::ui
{
10
11
class
GraphicalLogStream
:
public
QObject {
12
Q_OBJECT
13
14
public
:
15
explicit
GraphicalLogStream
(QObject* parent =
nullptr
);
16
~GraphicalLogStream
()
override
;
17
18
void
attachToBoostLog
();
19
void
detachFromBoostLog
();
20
21
signals:
22
void
lineReceived
(QString line);
23
24
private
:
25
boost::shared_ptr<boost::log::sinks::sink>
sink
;
26
};
27
28
}
// namespace SILICON::ui
SILICON::ui::GraphicalLogStream::detachFromBoostLog
void detachFromBoostLog()
Definition
graphicalLogStream.cpp:91
SILICON::ui::GraphicalLogStream::sink
boost::shared_ptr< boost::log::sinks::sink > sink
Definition
graphicalLogStream.hpp:25
SILICON::ui::GraphicalLogStream::lineReceived
void lineReceived(QString line)
SILICON::ui::GraphicalLogStream::GraphicalLogStream
GraphicalLogStream(QObject *parent=nullptr)
Definition
graphicalLogStream.cpp:72
SILICON::ui::GraphicalLogStream::~GraphicalLogStream
~GraphicalLogStream() override
Definition
graphicalLogStream.cpp:74
SILICON::ui::GraphicalLogStream::attachToBoostLog
void attachToBoostLog()
Definition
graphicalLogStream.cpp:79
SILICON::ui
Definition
actionGroups.hpp:14
src
ui
shell
logging
graphicalLogStream.hpp
Generated by
1.17.0