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

MntRTPFileWriter Class Reference

#include <mnt_rtp_file_writer.h>

Inheritance diagram for MntRTPFileWriter:

MntComponent List of all members.

Public Member Functions

 MntRTPFileWriter (const char *name)
 ~MntRTPFileWriter ()
virtual void recv (MntData *p)

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.

MntRTPFileWriter::~MntRTPFileWriter  )  [inline]
 

This destructor closes the file this object is writing to.


Member Function Documentation

virtual void MntRTPFileWriter::recv MntData p  )  [inline, virtual]
 

Expects a MntRTPMPEGPacket object, writes to a file and push the received object to other components.

Reimplemented from MntComponent.


The documentation for this class was generated from the following file:
Generated on Thu Aug 25 14:07:39 2005 for mnt by  doxygen 1.4.4