vrpn
07.33
Virtual Reality Peripheral Network
|
Go to the documentation of this file.
17 #ifndef VRPN_AUXILIARY_LOGGER_H
18 #define VRPN_AUXILIARY_LOGGER_H
42 bool pack_log_message_of_type(vrpn_int32 type,
43 const char *local_in_logfile_name,
44 const char *local_out_logfile_name,
45 const char *remote_in_logfile_name,
46 const char *remote_out_logfile_name);
54 bool unpack_log_message_from_buffer(
const char *buf, vrpn_int32 buflen,
55 char **local_in_logfile_name,
56 char **local_out_logfile_name,
57 char **remote_in_logfile_name,
58 char **remote_out_logfile_name);
84 handle_request_logging(
const char *local_in_logfile_name,
85 const char *local_out_logfile_name,
86 const char *remote_in_logfile_name,
87 const char *remote_out_logfile_name) = 0;
92 const char *local_out_logfile_name,
93 const char *remote_in_logfile_name,
94 const char *remote_out_logfile_name)
100 report_logging_m_id, local_in_logfile_name, local_out_logfile_name,
101 remote_in_logfile_name, remote_out_logfile_name);
110 virtual void handle_dropped_last_connection(
void);
122 virtual void handle_request_logging_status() = 0;
138 const char *connection_to_log,
149 const char *local_out_logfile_name,
150 const char *remote_in_logfile_name,
151 const char *remote_out_logfile_name);
160 if (d_logging_connection) {
161 d_logging_connection->mainloop();
162 d_logging_connection->save_log_so_far();
190 void *userdata,
const vrpn_AUXLOGGERCB info);
208 const char *local_out_logfile_name =
"",
209 const char *remote_in_logfile_name =
"",
210 const char *remote_out_logfile_name =
"")
216 request_logging_m_id, local_in_logfile_name, local_out_logfile_name,
217 remote_in_logfile_name, remote_out_logfile_name);
233 return d_callback_list.register_handler(userdata, handler);
238 return d_callback_list.unregister_handler(userdata, handler);
virtual void mainloop(void)
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
virtual void handle_request_logging_status()=0
virtual int unregister_report_handler(void *userdata, vrpn_AUXLOGGERREPORTHANDLER handler)
vrpn_int32 dropped_last_connection_m_id
virtual void handle_request_logging(const char *local_in_logfile_name, const char *local_out_logfile_name, const char *remote_in_logfile_name, const char *remote_out_logfile_name)=0
bool pack_log_message_of_type(vrpn_int32 type, const char *local_in_logfile_name, const char *local_out_logfile_name, const char *remote_in_logfile_name, const char *remote_out_logfile_name)
const char * local_in_logfile_name
vrpn_int32 report_logging_m_id
vrpn_Connection * d_logging_connection
virtual void mainloop(void)
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
bool send_logging_request(const char *local_in_logfile_name, const char *local_out_logfile_name="", const char *remote_in_logfile_name="", const char *remote_out_logfile_name="")
virtual int register_report_handler(void *userdata, vrpn_AUXLOGGERREPORTHANDLER handler)
This structure is what is passed to a vrpn_Connection message callback.
vrpn_Callback_List< vrpn_AUXLOGGERCB > d_callback_list
vrpn_int32 request_logging_m_id
virtual void mainloop()=0
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
Generic connection class not specific to the transport mechanism.
const char * remote_in_logfile_name
virtual int register_types(void)=0
Register the types of messages this device sends/receives. Return 0 on success, -1 on fail.
bool send_report_logging(const char *local_in_logfile_name, const char *local_out_logfile_name, const char *remote_in_logfile_name, const char *remote_out_logfile_name)
const char * local_out_logfile_name
vrpn_int32 request_logging_status_m_id
bool send_logging_status_request()
void server_mainloop(void)
Handles functions that all servers should provide in their mainloop() (ping/pong, for example) Should...
Class from which all user-level (and other) classes that communicate with vrpn_Connections should der...
const char * remote_out_logfile_name
void(VRPN_CALLBACK * vrpn_AUXLOGGERREPORTHANDLER)(void *userdata, const vrpn_AUXLOGGERCB info)