-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmessagehandler.h
More file actions
31 lines (23 loc) · 789 Bytes
/
Copy pathmessagehandler.h
File metadata and controls
31 lines (23 loc) · 789 Bytes
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
#ifndef MESSAGEPARSER_H
#define MESSAGEPARSER_H
#include <boost/thread.hpp>
#include <boost/asio.hpp>
#include "oscpkt.hh"
class DeviceInteractor;
class MessageHandler
{
public:
MessageHandler(boost::asio::io_service& IOService, DeviceInteractor& Interactor);
void OnUDPMessage(const std::string& Message);
boost::shared_mutex& GetMutex();
// OSC Packet Decoder
void OnOSCMessageParseSuccess(const oscpkt::Message& Message);
void OnOSCMessageParseError(const oscpkt::ErrorCode& ErrorCode);
// OSC Message Decoder
void OnDeviceMessage(const std::string& DeviceName, const std::string& Message);
private:
boost::shared_mutex m_Mutex;
boost::asio::io_service& m_IOService;
DeviceInteractor& m_DeviceInteractor;
};
#endif // MESSAGEPARSER_H