Main Page | Class Hierarchy | Class List | Directories | Class Members

MntRTPFileWriter Class Reference

This object class expects to recv() MntRTPMPEGPacket objects and write the content of the object to a binary file, before pushing it to other components linked from this object The format of the binary file is a sequence of records, with each records prefixed by a 4 bytes field that indicates the length of the record. More...

#include <mnt_rtp_file_writer.h>

Inheritance diagram for MntRTPFileWriter:

MntComponent List of all members.

Public Member Functions

 MntRTPFileWriter (const char *name)
 This constructor opens the file of a given name for writing.
 ~MntRTPFileWriter ()
 This destructor closes the file this object is writing to.
virtual void recv (MntData *p)
 Expects a MntRTPMPEGPacket object, writes to a file and push the received object to other components.

Private Attributes

FILE * f_

Detailed Description

This object class expects to recv() MntRTPMPEGPacket objects and write the content of the object to a binary file, before pushing it to other components linked from this object The format of the binary file is a sequence of records, with each records prefixed by a 4 bytes field that indicates the length of the record.


Constructor & Destructor Documentation

MntRTPFileWriter::MntRTPFileWriter const char *  name  )  [inline]
 

This constructor opens the file of a given name for writing.

If the given filename cannot be opened, then a file called /tmp/DUMP.rtp will be created for writing (without warning). If this attempt fails as well, the program might seg fault.


Member Data Documentation

FILE* MntRTPFileWriter::f_ [private]
 

the file to dump the RTP packets to


The documentation for this class was generated from the following file:
Generated on Wed Sep 14 12:37:13 2005 for mnt by  doxygen 1.4.4