#include <playback_reader.h>
Public Member Functions | |
| playback_reader (void) | |
| playback_reader (const char *const) | |
| Open log with corresponding filename. | |
| IO_TYPE | IO (void) |
| returns whether message is input or output. | |
| int | next () |
| Increments to next message in log. | |
| int | prev (void) |
| position at previous record. | |
| int | goto_record (int) |
| positions at record number given. | |
| int | timestamp (void) |
| Returns timestamp from message. | |
| int | timenow (void) |
| Returns current time (ticks) from WCOS. | |
| int | count (void) |
| Returns number of records in playback script. | |
| int | position (void) |
| Returns current postion in playback script. | |
| OBJECT | source (void) |
| Return source ID of message. | |
| OBJECT | destination (void) |
| Return destination component. | |
| JAUS_MESSAGE | code (void) |
| Return command code of message. | |
| message * | msg (void) |
| Return the message content. | |
| void | fn (const char *const) |
| File name of playback script. | |
| const char *const | fn (void) |
| Return current playback filename. | |
| bool | open (void) |
| Returns true if file open. | |
| void | openscript () |
| Open playback script. | |
| bool | file_exists (void) |
| Returns true if current filename exists. | |
Private Member Functions | |
| void | init (void) |
| void | readline (long) |
| void | decode (const char *const) |
Private Attributes | |
| jaus_message | _msg |
| OS_SYSTEM_INFO | _info |
| IO_TYPE | _io |
| OBJECT | _source |
| OBJECT | _destination |
| JAUS_MESSAGE | _code |
| int | _timestamp |
| char | _line [PLAYBACK_BLKSIZE+1] |
| long | _lastrec |
| long | _recno |
| char | _pb_fn [FILENAME_MAX] |
|
|
|
|
|
Open log with corresponding filename.
|
|
|
Return command code of message.
|
|
|
Returns number of records in playback script.
|
|
|
|
|
|
Return destination component.
|
|
|
Returns true if current filename exists.
|
|
|
Return current playback filename.
|
|
|
File name of playback script.
|
|
|
positions at record number given.
|
|
|
|
|
|
returns whether message is input or output.
|
|
|
Return the message content.
|
|
|
Increments to next message in log.
|
|
|
Returns true if file open.
|
|
|
Open playback script.
|
|
|
Returns current postion in playback script.
|
|
|
position at previous record.
|
|
|
|
|
|
Return source ID of message.
|
|
|
Returns current time (ticks) from WCOS.
|
|
|
Returns timestamp from message.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3