RflySimSDK
v3.08
RflySimSDK说明文档
载入中...
搜索中...
未找到
simulink
vrpn
vrpn_MessageMacros.h
浏览该文件的文档.
1
/** @file
2
@brief Header containing macros formerly duplicated in a lot of
3
implementation files.
4
5
For use only in implementation files for vrpn devices. This is the "old way"
6
of doing things: just unified here to reduce code duplication. The
7
new way of simplifying message sending is in
8
vrpn_SendTextMessageStreamProxy.h.
9
10
@date 2013
11
12
@author
13
Ryan Pavlik
14
<rpavlik@iastate.edu> and <abiryan@ryand.net>
15
http://academic.cleardefinition.com/
16
Iowa State University Virtual Reality Applications Center
17
Human-Computer Interaction Graduate Program
18
*/
19
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