-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsushi_grpc_client.h
80 lines (69 loc) · 2.47 KB
/
sushi_grpc_client.h
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/*
* Copyright 2018-2019 Modern Ancient Instruments Networked AB, dba Elk
* elkcpp is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Foundation,
* either version 3 of the License, or (at your option) any later version.
*
* elkcpp is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with elkcpp.
* If not, see http://www.gnu.org/licenses/ .
*/
/**
* @brief gRPC client to control sushi
<<<<<<< HEAD
* @copyright 2018-2019 Modern Ancient Instruments Networked AB, dba Elk, Stockholm
=======
*
* @copyright MIND Music Labs AB, Stockholm, Sweden
>>>>>>> develop
*/
#ifndef SUSHI_GRPC_CLIENT_H
#define SUSHI_GRPC_CLIENT_H
#include <grpc++/grpc++.h>
#include <thread>
#include <atomic>
#include "sushi_rpc.grpc.pb.h"
#include "control_interface.h"
#include "system_controller.h"
#include "transport_controller.h"
#include "timing_controller.h"
#include "keyboard_controller.h"
#include "audio_graph_controller.h"
#include "program_controller.h"
#include "parameter_controller.h"
#include "midi_controller.h"
#include "audio_routing_controller.h"
#include "cv_gate_controller.h"
#include "osc_controller.h"
#include "session_controller.h"
#include "notification_controller.h"
namespace sushi_controller
{
/**
* @brief A class to control sushi via gRPC
*
*/
class SushiControllerClient : public SushiController
{
public:
SushiControllerClient(const std::string& address);
private:
SystemControllerClient _system_controller_client;
TransportControllerClient _transport_controller_client;
TimingControllerClient _timing_controller_client;
KeyboardControllerClient _keyboard_controller_client;
AudioGraphControllerClient _audio_graph_controller_client;
ProgramControllerClient _program_controller_client;
ParameterControllerClient _parameter_controller_client;
MidiControllerClient _midi_controller_client;
AudioRoutingControllerClient _audio_routing_controller_client;
CvGateControllerClient _cv_gate_controller_client;
OscControllerClient _osc_controller_client;
SessionControllerClient _session_controller_client;
NotificationControllerClient _notification_controller_client;
};
}
#endif // SUSHI_GRPC_CLIENT_H