LeviLamina
Loading...
Searching...
No Matches
ScriptDebuggerProtocol.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7namespace ScriptDebuggerMessages { struct MessageEnvelope; }
8namespace ScriptDebuggerMessages { struct NotificationEvent; }
9namespace ScriptDebuggerMessages { struct PrintEvent; }
10namespace ScriptDebuggerMessages { struct ProfilerCapture; }
11namespace ScriptDebuggerMessages { struct ProtocolEvent; }
12namespace ScriptDebuggerMessages { struct ProtocolResponse; }
13namespace cereal { struct ReflectionCtx; }
14// clang-format on
15
16class ScriptDebuggerProtocol {
17public:
18 // member variables
19 // NOLINTBEGIN
22 // NOLINTEND
23
24public:
25 // prevent constructor by default
26 ScriptDebuggerProtocol& operator=(ScriptDebuggerProtocol const&);
27 ScriptDebuggerProtocol(ScriptDebuggerProtocol const&);
28 ScriptDebuggerProtocol();
29
30public:
31 // member functions
32 // NOLINTBEGIN
33 MCNAPI bool
34 parseMessageEnvelope(::std::string const& json, ::ScriptDebuggerMessages::MessageEnvelope& commandEvent);
35
36 MCNAPI ::std::string receive();
37
39
40 MCNAPI void send(::std::string const& message);
41
43
45
47
49 // NOLINTEND
50
51public:
52 // static functions
53 // NOLINTBEGIN
55 // NOLINTEND
56};
static MCAPI void bindMessageTypes(::cereal::ReflectionCtx &ctx)
MCAPI void sendProfilerCapture(::ScriptDebuggerMessages::ProfilerCapture &&profilerCapture)
MCAPI void send(::std::string const &message)
MCAPI bool parseMessageEnvelope(::std::string const &json, ::ScriptDebuggerMessages::MessageEnvelope &commandEvent)
MCAPI void sendNotificationEvent(::ScriptDebuggerMessages::NotificationEvent &&notificationEvent)
MCAPI void sendPrintEvent(::ScriptDebuggerMessages::PrintEvent &&printEvent)
MCAPI bool receiveProtocolResponse(::ScriptDebuggerMessages::ProtocolResponse &protocolResponse)
MCAPI void sendProtocolEvent(::ScriptDebuggerMessages::ProtocolEvent &&protocolEvent)
MCAPI::std::string receive()
Definition MessageEnvelope.h:7
Definition NotificationEvent.h:7
Definition PrintEvent.h:7
Definition ProfilerCapture.h:7
Definition ProtocolEvent.h:12
Definition ProtocolResponse.h:7
Definition ReflectionCtx.h:11
Definition ctx.h:5
Definition Alias.h:14