playback Class Reference
[Logged Messages Player]

#include <player_functions.h>

Collaboration diagram for playback:
Collaboration graph
[legend]

Data Structures

struct  struct_file_handle

Public Member Functions

 playback ()
 PLayback constructur. Stars a new playback class.
 ~playback ()
 PLayback deconstructur.
int OpenLogFile (char *filename)
 Open log file.
int IndexMessages ()
int IndexMessagesXML ()
 Index the xml header file.
int Play (void)
 Play mode.
int Stop (void)
 Stop the player.
int Seek (double time)
 Jump to a specific time.
void Sleep (double time)
 Sleep function.
int PublishStatus (playback_status_message *msg, bool force=FALSE)
 Publish a status message.
int Dispatch (void)
 Dispatch new recived status.
int SetStatus (enum_status new_status)
 Sets the status variable.
int SetDirection (enum_status new_status)
 Sets the direction variable.
int SetSpeed (double new_speed)
 Sets the speed variable.
int StepForward (double type)
 Steps one message forward.
int StepBackward (double type)
 Steps one message backward.
int Deactivate (int id)
 Deactivate the publish of a specific type of messages.
int Activate (int id)
 Activate the publish of a specific type of messages.
int InitialiseFormats (void)
int RegisterMessages (void)
 Register IPC messages.
int ReadMessageFromFile (int message_number)
 Read message from data file.
int SendMessage (int message_number)
 Send message via IPC.
int PlaySingleMessage (int message_number)
 Play single message.
int CloseLogXml (void)
 Close the log header.
void AddNode (long unsigned number, unsigned int size, long int start_position, unsigned short int id, double timestamp)
void CountMessages (char *filename)
void GetName (xmlTextReaderPtr reader)
void GetValue (xmlTextReaderPtr reader)
void GetAttribute (xmlTextReaderPtr reader, const xmlChar *name)
void CountHandler (xmlTextReaderPtr reader)
void LowLevelIndex (char *filename)
void IndexHandler (xmlTextReaderPtr reader)

Data Fields

unsigned int number_message_types
 Number of message types.
struct_message_typesmessage_types
 Message types struct.
double total_messages
 Total number of messages.
struct_messagemessages
 Message vector struct.
double start_time
 Player start time.
mlistcmsg
mlistsmsg

Private Attributes

struct_file_handle file_handle
 Handler for the header file.
enum_status status
 Status of the player.
enum_status direction
 Playing direction.
unsigned int current_message
 Current message.
double speed
 Speed being used.
double publish_status_frequency
 Frequency at which status messages are being sent.
char text [1024]
 Auxiliar variable.

Member Function Documentation

void playback::AddNode ( long unsigned  number,
unsigned int  size,
long int  start_position,
unsigned short int  id,
double  timestamp 
)

Referenced by IndexHandler().

Here is the caller graph for this function:

int playback::IndexMessages (  ) 
int playback::InitialiseFormats ( void   ) 

Field Documentation

Referenced by playback().

unsigned int playback::current_message [private]

Current message.

Referenced by Play(), playback(), PublishStatus(), Seek(), StepBackward(), and StepForward().

Playing direction.

Referenced by Play(), playback(), and SetDirection().

Handler for the header file.

Referenced by IndexHandler(), IndexMessagesXML(), and OpenLogFile().

Number of message types.

Referenced by CountHandler(), IndexMessagesXML(), playback(), and RegisterMessages().

Frequency at which status messages are being sent.

Referenced by playback(), and PublishStatus().

Referenced by playback().

double playback::speed [private]

Speed being used.

Referenced by Play(), playback(), and SetSpeed().

Player start time.

Referenced by ReadMessageFromFile().

Status of the player.

Referenced by Dispatch(), Play(), playback(), PublishStatus(), SetStatus(), and Stop().

char playback::text[1024] [private]

Auxiliar variable.

Referenced by CountHandler(), GetAttribute(), GetName(), GetValue(), and IndexHandler().

Total number of messages.

Referenced by CountHandler(), IndexMessagesXML(), Play(), ReadMessageFromFile(), and StepForward().


The documentation for this class was generated from the following files:
Generated on Wed Jun 2 12:43:29 2010 for LAR Atlas by  doxygen 1.6.3