Public 类型 | |
| enum | FGError { NO_FG_ERROR = 0 , INTERPRETER_ERROR = 1 , TAKING_TOO_LONG = 2 , INVALID_RESULT_QUANTITY = 3 , INVALID_RESULT_RANGE = 4 } |
Public 成员函数 | |
| vrpn_FunctionGenerator (const char *name, vrpn_Connection *c=NULL) | |
| const vrpn_FunctionGenerator_channel * | getChannel (vrpn_uint32 channelNum) |
| vrpn_uint32 | getNumChannels () const |
| vrpn_float32 | getSampleRate () |
| Public 成员函数 继承自 vrpn_BaseClass | |
| vrpn_BaseClass (const char *name, vrpn_Connection *c=NULL) | |
| virtual void | mainloop ()=0 |
| Public 成员函数 继承自 vrpn_BaseClassUnique | |
| vrpn_Connection * | connectionPtr () |
| Returns a pointer to the connection this object is using | |
Protected 成员函数 | |
| virtual int | register_types () |
| Protected 成员函数 继承自 vrpn_BaseClass | |
| virtual int | init (void) |
| virtual int | register_senders (void) |
| Protected 成员函数 继承自 vrpn_BaseClassUnique | |
| int | register_autodeleted_handler (vrpn_int32 type, vrpn_MESSAGEHANDLER handler, void *userdata, vrpn_int32 sender=vrpn_ANY_SENDER) |
| int | send_text_message (const char *msg, struct timeval timestamp, vrpn_TEXT_SEVERITY type=vrpn_TEXT_NORMAL, vrpn_uint32 level=0) |
| Sends a NULL-terminated text message from the device d_sender_id | |
| SendTextMessageBoundCall | send_text_message (vrpn_TEXT_SEVERITY type=vrpn_TEXT_NORMAL) |
| void | server_mainloop (void) |
| void | client_mainloop (void) |
Protected 属性 | |
| vrpn_float32 | sampleRate |
| vrpn_uint32 | numChannels |
| vrpn_FunctionGenerator_channel * | channels [vrpn_FUNCTION_CHANNELS_MAX] |
| vrpn_int32 | channelMessageID |
| vrpn_int32 | requestChannelMessageID |
| vrpn_int32 | requestAllChannelsMessageID |
| vrpn_int32 | sampleRateMessageID |
| vrpn_int32 | startFunctionMessageID |
| vrpn_int32 | stopFunctionMessageID |
| vrpn_int32 | requestInterpreterMessageID |
| vrpn_int32 | channelReplyMessageID |
| vrpn_int32 | startFunctionReplyMessageID |
| vrpn_int32 | stopFunctionReplyMessageID |
| vrpn_int32 | sampleRateReplyMessageID |
| vrpn_int32 | interpreterReplyMessageID |
| vrpn_int32 | errorMessageID |
| vrpn_int32 | gotConnectionMessageID |
| char | msgbuf [vrpn_CONNECTION_TCP_BUFLEN] |
| struct timeval | timestamp |
| Protected 属性 继承自 vrpn_BaseClassUnique | |
| vrpn_Connection * | d_connection |
| Connection that this object talks to | |
| char * | d_servicename |
| vrpn_int32 | d_sender_id |
| part | |
| vrpn_int32 | d_text_message_id |
| ID for text messages | |
| vrpn_int32 | d_ping_message_id |
| Ask the server if they are there | |
| vrpn_int32 | d_pong_message_id |
| Server telling that it is there | |
额外继承的成员函数 | |
| Public 属性 继承自 vrpn_BaseClassUnique | |
| bool | shutup |
| 静态 Protected 成员函数 继承自 vrpn_BaseClassUnique | |
| static int | encode_text_message_to_buffer (char *buf, vrpn_TEXT_SEVERITY severity, vrpn_uint32 level, const char *msg) |
| static int | decode_text_message_from_buffer (char *msg, vrpn_TEXT_SEVERITY *severity, vrpn_uint32 *level, const char *buf) |
| Decodes the body of the text message from a buffer from the connection | |
|
protectedvirtual |
Register the types of messages this device sends/receives. Return 0 on success, -1 on fail.
实现了 vrpn_BaseClass.