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

MntData Class Reference

MntData is the base class for all data objects. More...

#include <mnt_data.h>

Inheritance diagram for MntData:

MntMPEGFrame MntMPEGRTPReassemblerBuffer MntRTPMPEGPacket MntYUVFrame List of all members.

Public Member Functions

 MntData ()
 Empty constructor.
 MntData (unsigned char *data, int size)
 Constructor that initialize the data with a given size.
int is_valid_pointer (unsigned char *ptr)

Public Attributes

unsigned char * data_
unsigned int size_
unsigned int length_

Detailed Description

MntData is the base class for all data objects.

A data object is something that is passed around, and processed by MntComponent.

An MntData object contains a pointer to the actual data in some buffer, the size of the buffer and the size of the data.


Constructor & Destructor Documentation

MntData::MntData unsigned char *  data,
int  size
[inline]
 

Constructor that initialize the data with a given size.

Since data is not allocated by this object, length is set to 0.

Parameters:
data pointer to data
size of the data


Member Function Documentation

int MntData::is_valid_pointer unsigned char *  ptr  )  [inline]
 

Returns:
1 if parameter ptr points to meaningful data in the buffer, 0 otherwise.
Parameters:
ptr a pointer, which we wants to check for validity.


Member Data Documentation

unsigned char* MntData::data_
 

pointer to some memory buffer containing the data

unsigned int MntData::length_
 

size of the memory buffer containing data

unsigned int MntData::size_
 

size of meaningful data


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