Header containing macros formerly duplicated in a lot of implementation files.
更多...
浏览该文件的源代码.
Header containing macros formerly duplicated in a lot of implementation files.
For use only in implementation files for vrpn devices. This is the "old way" of doing things: just unified here to reduce code duplication. The new way of simplifying message sending is in vrpn_SendTextMessageStreamProxy.h.
- 日期
- 2013
- 作者
- Ryan Pavlik rpavl.nosp@m.ik@i.nosp@m.astat.nosp@m.e.ed.nosp@m.u and abiry.nosp@m.an@r.nosp@m.yand..nosp@m.net http://academic.cleardefinition.com/ Iowa State University Virtual Reality Applications Center Human-Computer Interaction Graduate Program
◆ VRPN_MSG_ERROR
#define VRPN_MSG_ERROR |
( |
| msg | ) |
|
值: { \
send_text_message(msg, VRPN_TIMESTAMP_MEMBER, vrpn_TEXT_ERROR); \
if (d_connection && d_connection->connected()) \
d_connection->send_pending_reports(); \
}
◆ VRPN_MSG_INFO
#define VRPN_MSG_INFO |
( |
| msg | ) |
|
值: { \
send_text_message(msg, VRPN_TIMESTAMP_MEMBER, vrpn_TEXT_NORMAL); \
if (d_connection && d_connection->connected()) \
d_connection->send_pending_reports(); \
}
◆ VRPN_MSG_WARNING
#define VRPN_MSG_WARNING |
( |
| msg | ) |
|
值: { \
send_text_message(msg, VRPN_TIMESTAMP_MEMBER, vrpn_TEXT_WARNING); \
if (d_connection && d_connection->connected()) \
d_connection->send_pending_reports(); \
}