Main Page   Hardware Class Hierarchy   Hardware API     Mapping Class Hierarchy  Mapping API 

playback_reader Class Reference

Class to manage access to the playback log generated from M3 execution. More...

#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.

messagemsg (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]


Detailed Description

Class to manage access to the playback log generated from M3 execution.


Constructor & Destructor Documentation

playback_reader void   ) 
 

playback_reader const char *  const  ) 
 

Open log with corresponding filename.


Member Function Documentation

JAUS_MESSAGE code void   ) 
 

Return command code of message.

int count void   ) 
 

Returns number of records in playback script.

void decode const char *  const  )  [private]
 

OBJECT destination void   ) 
 

Return destination component.

bool file_exists void   ) 
 

Returns true if current filename exists.

const char* const fn void   ) 
 

Return current playback filename.

void fn const char *  const  ) 
 

File name of playback script.

int goto_record int   ) 
 

positions at record number given.

void init void   )  [private]
 

IO_TYPE IO void   ) 
 

returns whether message is input or output.

message* msg void   ) 
 

Return the message content.

int next  ) 
 

Increments to next message in log.

bool open void   ) 
 

Returns true if file open.

void openscript  ) 
 

Open playback script.

int position void   ) 
 

Returns current postion in playback script.

int prev void   ) 
 

position at previous record.

void readline long   )  [private]
 

OBJECT source void   ) 
 

Return source ID of message.

int timenow void   ) 
 

Returns current time (ticks) from WCOS.

int timestamp void   ) 
 

Returns timestamp from message.


Field Documentation

JAUS_MESSAGE _code [private]
 

OBJECT _destination [private]
 

OS_SYSTEM_INFO _info [private]
 

IO_TYPE _io [private]
 

long _lastrec [private]
 

char _line[PLAYBACK_BLKSIZE+1] [private]
 

jaus_message _msg [private]
 

char _pb_fn[FILENAME_MAX] [private]
 

long _recno [private]
 

OBJECT _source [private]
 

int _timestamp [private]
 


Generated on Mon Oct 8 19:32:27 2007 for OOMRM Mapping API by doxygen1.3