RflySimSDK
v3.05
RflySimSDK说明文档
载入中...
搜索中...
未找到
simulink
vrpn
vrpn_MessageMacros.h
浏览该文件的文档.
1
20
// Copyright Iowa State University 2013.
21
// Distributed under the Boost Software License, Version 1.0.
22
// (See accompanying file LICENSE_1_0.txt or copy at
23
// http://www.boost.org/LICENSE_1_0.txt)
24
25
#ifndef INCLUDED_vrpn_MessageMacros_h_GUID_289adc6a_78da_4d50_8166_4611d0d911e8
26
#define INCLUDED_vrpn_MessageMacros_h_GUID_289adc6a_78da_4d50_8166_4611d0d911e8
27
28
#ifndef VRPN_TIMESTAMP_MEMBER
29
#define VRPN_TIMESTAMP_MEMBER timestamp
30
#endif
31
32
#define VRPN_MSG_INFO(msg) \
33
{ \
34
send_text_message(msg, VRPN_TIMESTAMP_MEMBER, vrpn_TEXT_NORMAL); \
35
if (d_connection && d_connection->connected()) \
36
d_connection->send_pending_reports(); \
37
}
38
39
#define VRPN_MSG_WARNING(msg) \
40
{ \
41
send_text_message(msg, VRPN_TIMESTAMP_MEMBER, vrpn_TEXT_WARNING); \
42
if (d_connection && d_connection->connected()) \
43
d_connection->send_pending_reports(); \
44
}
45
46
#define VRPN_MSG_ERROR(msg) \
47
{ \
48
send_text_message(msg, VRPN_TIMESTAMP_MEMBER, vrpn_TEXT_ERROR); \
49
if (d_connection && d_connection->connected()) \
50
d_connection->send_pending_reports(); \
51
}
52
53
#endif
// INCLUDED_vrpn_MessageMacros_h_GUID_289adc6a_78da_4d50_8166_4611d0d911e8
制作者
1.11.0