vrpn
07.33
Virtual Reality Peripheral Network
|
Go to the documentation of this file. 1 #ifndef VRPN_FILE_CONNECTION_H
2 #define VRPN_FILE_CONNECTION_H
76 const char *local_in_logfile_name = NULL,
77 const char *local_out_logfile_name = NULL);
80 virtual int mainloop(
const timeval *timeout = NULL);
106 d_filetime_accum.set_replay_rate(rate);
120 int play_to_time(vrpn_float64 end_time);
121 int play_to_time(timeval end_time);
126 int play_to_filetime(
const timeval end_filetime);
133 int playone_to_filetime(timeval end_filetime);
136 timeval get_length();
137 double get_length_secs();
140 timeval get_lowest_user_timestamp();
143 timeval get_highest_user_timestamp();
146 const char *get_filename();
150 int jump_to_time(vrpn_float64 newtime);
151 int jump_to_time(timeval newtime);
155 int jump_to_filetime(timeval absolute_time);
190 void find_superlative_user_times();
211 bool store_stream_bookmark();
212 bool return_to_bookmark();
222 timeval d_filetime_accum_since_last_playback;
226 timeval d_time_of_last_accum;
229 vrpn_float32 d_replay_rate;
237 return d_filetime_accum_since_last_playback;
248 void accumulate_to(
const timeval &now_time);
252 void set_replay_rate(vrpn_float32 new_rate);
256 void reset_at_time(
const timeval &now_time);
266 void play_to_user_message();
269 int need_to_play(timeval filetime);
274 virtual int read_cookie(
void);
276 virtual int read_entry(
void);
282 virtual int advance_currentLogEntry(
void);
284 virtual int close_file(
void);
326 #endif // VRPN_FILE_CONNECTION_H
const timeval & time_of_last_accum(void)
vrpn_int32 d_controllerId
VRPN_API bool vrpn_FILE_CONNECTIONS_SHOULD_ACCUMULATE
vrpn_bool d_earliest_user_time_valid
void limit_messages_played_back(vrpn_uint32 max_playback)
vrpn_LOGLIST * oldCurrentLogEntryPtr
vrpn_int32 d_set_replay_rate_type
timeval d_highest_user_time
vrpn_LOGLIST * d_currentLogEntry
vrpn_LOGLIST * oldCurrentLogEntryCopy
VRPN_API bool vrpn_FILE_CONNECTIONS_SHOULD_PRELOAD
This structure is what is passed to a vrpn_Connection message callback.
vrpn_LOGLIST * d_startEntry
virtual vrpn_File_Connection * get_File_Connection(void)
vrpn_File_Connection implements this as "return this" so it can be used to detect a File_Connection a...
virtual int mainloop(const struct timeval *timeout=NULL)=0
Call each time through program main loop to handle receiving any incoming messages and sending any pa...
Generic connection class not specific to the transport mechanism.
Placed here so vrpn_FileConnection can use it too.
vrpn_float32 get_replay_rate()
const timeval & accumulated(void)
void set_replay_rate(vrpn_float32 rate)
virtual timeval get_time()
returns the current time in the connection (since the epoch – UTC time).
void Jane_stop_this_crazy_thing(vrpn_uint32 stop_looking_after)
This function should be seldom used. It is here for the case of the vrpn_Imager, whose servers do not...
virtual int send_pending_reports(void)=0
send pending report, clear the buffer. This function was protected, now is public,...
vrpn_bool d_highest_user_time_valid
class VRPN_API vrpn_File_Connection
VRPN_API bool vrpn_FILE_CONNECTIONS_SHOULD_SKIP_TO_USER_MESSAGES
vrpn_FileBookmark d_bookmark
FileTime_Accumulator d_filetime_accum
virtual int time_since_connection_open(struct timeval *elapsed_time)
Returns the time since the connection opened. Some subclasses may redefine time.
vrpn_float32 replay_rate(void)
vrpn_int32 d_play_to_time_type
timeval d_earliest_user_time