RflySimSDK v3.08
RflySimSDK说明文档
载入中...
搜索中...
未找到
vrpn_File_Connection类 参考
+ 类 vrpn_File_Connection 继承关系图:
+ vrpn_File_Connection 的协作图:

class  FileTime_Accumulator
 
class  vrpn_FileBookmark
 

Public 成员函数

 vrpn_File_Connection (const char *station_name, const char *local_in_logfile_name=NULL, const char *local_out_logfile_name=NULL)
 
virtual int mainloop (const timeval *timeout=NULL)
 
virtual int time_since_connection_open (timeval *elapsed_time)
 
virtual timeval get_time ()
 
virtual vrpn_File_Connectionget_File_Connection (void)
 
virtual int send_pending_reports (void)
 
void set_replay_rate (vrpn_float32 rate)
 
vrpn_float32 get_replay_rate ()
 
int reset (void)
 
int eof ()
 
int play_to_time (vrpn_float64 end_time)
 
int play_to_time (timeval end_time)
 
int play_to_filetime (const timeval end_filetime)
 
int playone ()
 
int playone_to_filetime (timeval end_filetime)
 
timeval get_length ()
 
double get_length_secs ()
 
timeval get_lowest_user_timestamp ()
 
timeval get_highest_user_timestamp ()
 
const char * get_filename ()
 
int jump_to_time (vrpn_float64 newtime)
 
int jump_to_time (timeval newtime)
 
int jump_to_filetime (timeval absolute_time)
 
void limit_messages_played_back (vrpn_uint32 max_playback)
 
- Public 成员函数 继承自 vrpn_Connection
virtual vrpn_bool doing_okay (void) const
 Returns vrpn_true if the connection is okay, vrpn_false if not
 
virtual vrpn_bool connected (void) const
 
void get_log_names (char **local_in_logname, char **local_out_logname, char **remote_in_logname, char **remote_out_logname)
 
virtual int mainloop (const struct timeval *timeout=NULL)=0
 
virtual vrpn_int32 register_sender (const char *name)
 
virtual vrpn_int32 register_message_type (const char *name)
 
virtual int register_handler (vrpn_int32 type, vrpn_MESSAGEHANDLER handler, void *userdata, vrpn_int32 sender=vrpn_ANY_SENDER)
 
virtual int unregister_handler (vrpn_int32 type, vrpn_MESSAGEHANDLER handler, void *userdata, vrpn_int32 sender=vrpn_ANY_SENDER)
 
virtual int pack_message (vrpn_uint32 len, struct timeval time, vrpn_int32 type, vrpn_int32 sender, const char *buffer, vrpn_uint32 class_of_service)
 
virtual const char * sender_name (vrpn_int32 sender)
 
virtual const char * message_type_name (vrpn_int32 type)
 
virtual int register_log_filter (vrpn_LOGFILTER filter, void *userdata)
 Sets up a filter function for logging. Any user message to be logged is first passed to this function, and will only be logged if the function returns zero (XXX). NOTE: this only affects local logging - remote logging is unfiltered! Only user messages are filtered; all system messages are logged. Returns nonzero on failure.
 
virtual int save_log_so_far ()
 Save any messages on any endpoints which have been logged so far.
 
void Jane_stop_this_crazy_thing (vrpn_uint32 stop_looking_after)
 
vrpn_uint32 get_Jane_value (void)
 
void addReference ()
 Counting references to this connection.
 
void removeReference ()
 
void setAutoDeleteStatus (bool setvalue)
 

Protected 成员函数

void find_superlative_user_times ()
 
bool store_stream_bookmark ()
 
bool return_to_bookmark ()
 
void play_to_user_message ()
 
int need_to_play (timeval filetime)
 
virtual int read_cookie (void)
 
virtual int read_entry (void)
 
virtual int advance_currentLogEntry (void)
 
virtual int close_file (void)
 
- Protected 成员函数 继承自 vrpn_Connection
 vrpn_Connection (const char *local_in_logfile_name, const char *local_out_logfile_name, vrpn_EndpointAllocator epa=allocateEndpoint)
 
 vrpn_Connection (const char *local_in_logfile_name, const char *local_out_logfile_name, const char *remote_in_logfile_name, const char *remote_out_logfile_name, vrpn_EndpointAllocator epa=allocateEndpoint)
 
int delete_endpoint (vrpn_Endpoint *endpoint)
 
int compact_endpoints (void)
 
virtual int pack_sender_description (vrpn_int32 which)
 Send the sender description to ALL endpoints.
 
virtual int pack_type_description (vrpn_int32 which)
 Send the type description to ALL endpoints.
 
virtual int do_callbacks_for (vrpn_int32 type, vrpn_int32 sender, struct timeval time, vrpn_uint32 len, const char *buffer)
 
int message_type_is_registered (const char *) const
 Returns message type ID, or -1 if unregistered
 
int doSystemCallbacksFor (vrpn_HANDLERPARAM, void *)
 
virtual void updateEndpoints (void)
 

静态 Protected 成员函数

static int VRPN_CALLBACK handle_set_replay_rate (void *, vrpn_HANDLERPARAM)
 
static int VRPN_CALLBACK handle_reset (void *, vrpn_HANDLERPARAM)
 
static int VRPN_CALLBACK handle_play_to_time (void *, vrpn_HANDLERPARAM)
 
- 静态 Protected 成员函数 继承自 vrpn_Connection
static vrpn_Endpoint_IPallocateEndpoint (vrpn_Connection *, vrpn_int32 *connectedEC)
 
static int VRPN_CALLBACK handle_log_message (void *userdata, vrpn_HANDLERPARAM p)
 Routines that handle system messages
 
static int VRPN_CALLBACK handle_disconnect_message (void *userdata, vrpn_HANDLERPARAM p)
 

Protected 属性

vrpn_int32 d_controllerId
 
vrpn_int32 d_set_replay_rate_type
 
vrpn_int32 d_reset_type
 
vrpn_int32 d_play_to_time_type
 
timeval d_last_told
 
timeval d_time
 
timeval d_start_time
 
timeval d_earliest_user_time
 
vrpn_bool d_earliest_user_time_valid
 
timeval d_highest_user_time
 
vrpn_bool d_highest_user_time_valid
 
vrpn_FileBookmark d_bookmark
 
timeval d_last_time
 
FileTime_Accumulator d_filetime_accum
 
char * d_fileName
 
FILE * d_file
 
vrpn_LOGLISTd_logHead
 
vrpn_LOGLISTd_logTail
 
vrpn_LOGLISTd_currentLogEntry
 
vrpn_LOGLISTd_startEntry
 
bool d_preload
 
bool d_accumulate
 
- Protected 属性 继承自 vrpn_Connection
vrpn_uint32 d_stop_processing_messages_after
 
int connectionStatus
 Status of the connection
 
vrpn::BoundEndpointAllocator d_boundEndpointAllocator
 
vrpn::EndpointContainer d_endpoints
 
vrpn_int32 d_numConnectedEndpoints
 
timeval start_time
 Timekeeping - TCH 30 June 98
 
int d_serverLogCount
 
vrpn_int32 d_serverLogMode
 
char * d_serverLogName
 
vrpn_bool d_updateEndpoint
 

额外继承的成员函数

- Public 属性 继承自 vrpn_Connection
vrpn_TypeDispatcher * d_dispatcher
 

成员函数说明

◆ get_File_Connection()

virtual vrpn_File_Connection * get_File_Connection ( void )
virtual

vrpn_File_Connection implements this as "return this" so it can be used to detect a File_Connection and get the pointer for it

重载 vrpn_Connection .

◆ get_time()

virtual timeval get_time ( )
inlinevirtual

returns the current time in the connection (since the epoch – UTC time).

重载 vrpn_Connection .

◆ send_pending_reports()

virtual int send_pending_reports ( void )
virtual

send pending report, clear the buffer. This function was protected, now is public, so we can use it to send out intermediate results without calling mainloop

实现了 vrpn_Connection.

◆ time_since_connection_open()

virtual int time_since_connection_open ( timeval * elapsed_time)
virtual

Returns the time since the connection opened. Some subclasses may redefine time.

重载 vrpn_Connection .


该类的文档由以下文件生成: