vrpn  07.33
Virtual Reality Peripheral Network
vrpn_MessageMacros.h File Reference

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

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

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

Detailed Description

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 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

Definition in file vrpn_MessageMacros.h.

Macro Definition Documentation

◆ VRPN_MSG_ERROR

#define VRPN_MSG_ERROR (   msg)
Value:
{ \
send_text_message(msg, VRPN_TIMESTAMP_MEMBER, vrpn_TEXT_ERROR); \
if (d_connection && d_connection->connected()) \
d_connection->send_pending_reports(); \
}
#define VRPN_TIMESTAMP_MEMBER

Definition at line 46 of file vrpn_MessageMacros.h.

◆ VRPN_MSG_INFO

#define VRPN_MSG_INFO (   msg)
Value:
{ \
send_text_message(msg, VRPN_TIMESTAMP_MEMBER, vrpn_TEXT_NORMAL); \
if (d_connection && d_connection->connected()) \
d_connection->send_pending_reports(); \
}
#define VRPN_TIMESTAMP_MEMBER

Definition at line 32 of file vrpn_MessageMacros.h.

◆ VRPN_MSG_WARNING

#define VRPN_MSG_WARNING (   msg)
Value:
{ \
send_text_message(msg, VRPN_TIMESTAMP_MEMBER, vrpn_TEXT_WARNING); \
if (d_connection && d_connection->connected()) \
d_connection->send_pending_reports(); \
}
#define VRPN_TIMESTAMP_MEMBER

Definition at line 39 of file vrpn_MessageMacros.h.

◆ VRPN_TIMESTAMP_MEMBER

#define VRPN_TIMESTAMP_MEMBER   timestamp

Definition at line 29 of file vrpn_MessageMacros.h.