WebCFace 2.5.2
Web-based Communication Framework & Dashboard-like UI
Loading...
Searching...
No Matches
base.h
Go to the documentation of this file.
1#pragma once
2#ifdef WEBCFACE_MESON
3#include "webcface-config.h"
4#else
5#include "webcface/common/webcface-config.h"
6#endif
7
9namespace message {
10// 新しいメッセージの定義は
11// kind追記→struct作成→message.ccに追記→s_client_data.ccに追記→client.ccに追記
12
13namespace MessageKind {
15 unknown = -1,
16 value = 0,
17 text = 1,
18 binary = 2,
21 image = 5,
24 log = 8,
25 view = 9,
28 entry = 20,
29 req = 40,
30 res = 60,
32 call = 81,
38 sync = 87,
40 // svr_version = 88,
41 ping = 89,
45};
46}
47
52template <int k>
54 static constexpr int kind = k;
55};
56
57template <typename T>
58struct Res {};
59
60} // namespace message
MessageKindEnum
Definition base.h:14
@ log_req_default
Definition base.h:37
@ ping_status
Definition base.h:42
@ ping_status_req
Definition base.h:43
@ text
Definition base.h:17
@ sync_init_end
Definition base.h:39
@ req
Definition base.h:29
@ robot_model
Definition base.h:22
@ func_info
Definition base.h:35
@ sync_init
Definition base.h:31
@ canvas2d
Definition base.h:26
@ binary
Definition base.h:18
@ unknown
Definition base.h:15
@ res
Definition base.h:30
@ image
Definition base.h:21
@ value
Definition base.h:16
@ call
Definition base.h:32
@ sync
Definition base.h:38
@ call_result
Definition base.h:34
@ canvas3d_old
Definition base.h:23
@ log
Definition base.h:24
@ ping
Definition base.h:41
@ log_entry_default
Definition base.h:44
@ view
Definition base.h:25
@ canvas2d_old
Definition base.h:20
@ call_response
Definition base.h:33
@ log_default
Definition base.h:36
@ view_old
Definition base.h:19
@ entry
Definition base.h:28
@ canvas3d
Definition base.h:27
型からkindを取得するためだけのベースクラス
Definition base.h:53
Definition base.h:58
#define WEBCFACE_NS_END
Definition webcface-config.h:104
#define WEBCFACE_NS_BEGIN
Definition webcface-config.h:103