RflySimSDK v3.05
RflySimSDK说明文档
载入中...
搜索中...
未找到
vrpn_MessageMacros.h 文件参考

Header containing macros formerly duplicated in a lot of implementation files. 更多...

浏览该文件的源代码.

宏定义

#define VRPN_TIMESTAMP_MEMBER   timestamp
 
#define VRPN_MSG_INFO(msg)
 
#define VRPN_MSG_WARNING(msg)
 
#define VRPN_MSG_ERROR(msg)
 

详细描述

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(); \
}