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
8
WEBCFACE_NS_BEGIN
9
namespace
message {
10
// 新しいメッセージの定義は
11
// kind追記→struct作成→message.ccに追記→s_client_data.ccに追記→client.ccに追記
12
13
namespace
MessageKind {
14
enum
MessageKindEnum
{
15
unknown
= -1,
16
value
= 0,
17
text
= 1,
18
binary
= 2,
19
view_old
= 3,
20
canvas2d_old
= 4,
21
image
= 5,
22
robot_model
= 6,
23
canvas3d_old
= 7,
24
log
= 8,
25
view
= 9,
26
canvas2d
= 10,
27
canvas3d
= 11,
28
entry
= 20,
29
req
= 40,
30
res
= 60,
31
sync_init
= 80,
32
call
= 81,
33
call_response
= 82,
34
call_result
= 83,
35
func_info
= 84,
36
log_default
= 85,
37
log_req_default
= 86,
38
sync
= 87,
39
sync_init_end
= 88,
40
// svr_version = 88,
41
ping
= 89,
42
ping_status
= 90,
43
ping_status_req
= 91,
44
log_entry_default
= 92,
45
};
46
}
47
52
template
<
int
k>
53
struct
MessageBase
{
54
static
constexpr
int
kind = k;
55
};
56
57
template
<
typename
T>
58
struct
Res
{};
59
60
}
// namespace message
61
WEBCFACE_NS_END
webcface::message::MessageKind::MessageKindEnum
MessageKindEnum
Definition
base.h:14
webcface::message::MessageKind::log_req_default
@ log_req_default
Definition
base.h:37
webcface::message::MessageKind::ping_status
@ ping_status
Definition
base.h:42
webcface::message::MessageKind::ping_status_req
@ ping_status_req
Definition
base.h:43
webcface::message::MessageKind::text
@ text
Definition
base.h:17
webcface::message::MessageKind::sync_init_end
@ sync_init_end
Definition
base.h:39
webcface::message::MessageKind::req
@ req
Definition
base.h:29
webcface::message::MessageKind::robot_model
@ robot_model
Definition
base.h:22
webcface::message::MessageKind::func_info
@ func_info
Definition
base.h:35
webcface::message::MessageKind::sync_init
@ sync_init
Definition
base.h:31
webcface::message::MessageKind::canvas2d
@ canvas2d
Definition
base.h:26
webcface::message::MessageKind::binary
@ binary
Definition
base.h:18
webcface::message::MessageKind::unknown
@ unknown
Definition
base.h:15
webcface::message::MessageKind::res
@ res
Definition
base.h:30
webcface::message::MessageKind::image
@ image
Definition
base.h:21
webcface::message::MessageKind::value
@ value
Definition
base.h:16
webcface::message::MessageKind::call
@ call
Definition
base.h:32
webcface::message::MessageKind::sync
@ sync
Definition
base.h:38
webcface::message::MessageKind::call_result
@ call_result
Definition
base.h:34
webcface::message::MessageKind::canvas3d_old
@ canvas3d_old
Definition
base.h:23
webcface::message::MessageKind::log
@ log
Definition
base.h:24
webcface::message::MessageKind::ping
@ ping
Definition
base.h:41
webcface::message::MessageKind::log_entry_default
@ log_entry_default
Definition
base.h:44
webcface::message::MessageKind::view
@ view
Definition
base.h:25
webcface::message::MessageKind::canvas2d_old
@ canvas2d_old
Definition
base.h:20
webcface::message::MessageKind::call_response
@ call_response
Definition
base.h:33
webcface::message::MessageKind::log_default
@ log_default
Definition
base.h:36
webcface::message::MessageKind::view_old
@ view_old
Definition
base.h:19
webcface::message::MessageKind::entry
@ entry
Definition
base.h:28
webcface::message::MessageKind::canvas3d
@ canvas3d
Definition
base.h:27
webcface::message::MessageBase
型からkindを取得するためだけのベースクラス
Definition
base.h:53
webcface::message::Res
Definition
base.h:58
webcface-config.h
WEBCFACE_NS_END
#define WEBCFACE_NS_END
Definition
webcface-config.h:104
WEBCFACE_NS_BEGIN
#define WEBCFACE_NS_BEGIN
Definition
webcface-config.h:103
common
include
webcface
common
internal
message
base.h
Generated on Tue Jan 7 2025 18:24:41 for WebCFace by
1.9.7