-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcommunication_center.cpp
33 lines (32 loc) · 1.55 KB
/
communication_center.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include "communication_center.hpp"
//#####################################################################################################################
CommunicationCenter::CommunicationCenter(attender::http_server* server, Config const& config)
: server_{server}
, authenticator_{this, *server, config}
, workspace_{this, *server, config}
, toolbar_{this, *server, config}
, httpStreamer_{this, *server, config}
, terminal_{this, *server, config}
, settingsProvider_{this, *server, config}
, debuggerRouter_{this, *server, config}
, wsStreamer_{this, server->get_io_context(), config}
{
}
//---------------------------------------------------------------------------------------------------------------------
CommunicationCenter::~CommunicationCenter() = default;
//---------------------------------------------------------------------------------------------------------------------
Routers::DataStreamer& CommunicationCenter::httpStreamer()
{
return httpStreamer_;
}
//---------------------------------------------------------------------------------------------------------------------
Streaming::WebsocketStreamer& CommunicationCenter::streamer()
{
return wsStreamer_;
}
//---------------------------------------------------------------------------------------------------------------------
Routers::SettingsProvider& CommunicationCenter::settingsProv()
{
return settingsProvider_;
}
//#####################################################################################################################