0 Star 0 Fork 1

ianaxe/vrpn

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
vrpn_MessageMacros.h 2.31 KB
一键复制 编辑 原始数据 按行查看 历史
/** @file
@brief 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.
@date 2013
@author
Ryan Pavlik
<rpavlik@iastate.edu> and <abiryan@ryand.net>
http://academic.cleardefinition.com/
Iowa State University Virtual Reality Applications Center
Human-Computer Interaction Graduate Program
*/
// Copyright Iowa State University 2013.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef INCLUDED_vrpn_MessageMacros_h_GUID_289adc6a_78da_4d50_8166_4611d0d911e8
#define INCLUDED_vrpn_MessageMacros_h_GUID_289adc6a_78da_4d50_8166_4611d0d911e8
#ifndef VRPN_TIMESTAMP_MEMBER
#define VRPN_TIMESTAMP_MEMBER timestamp
#endif
#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(); \
}
#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(); \
}
#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(); \
}
#endif // INCLUDED_vrpn_MessageMacros_h_GUID_289adc6a_78da_4d50_8166_4611d0d911e8
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/ianaxe/vrpn.git
git@gitee.com:ianaxe/vrpn.git
ianaxe
vrpn
vrpn
master

搜索帮助