Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members

mxcpcStreamSource Class Reference
[mxcpc (MOBOTIX Cross Platform Client Library)]

Abstract representation of a (media) stream source. More...

#include <mxcpcStreamSource.h>

Inheritance diagram for mxcpcStreamSource:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual int fetchBytes (unsigned char *buffer, int num)=0
 Fetches at most num raw stream bytes from the stream source, writes them to the specified buffer, and returns the number of bytes actually fetched.

Detailed Description

Abstract representation of a (media) stream source.

Definition at line 26 of file mxcpcStreamSource.h.


Member Function Documentation

virtual int mxcpcStreamSource::fetchBytes unsigned char *  buffer,
int  num
[pure virtual]
 

Fetches at most num raw stream bytes from the stream source, writes them to the specified buffer, and returns the number of bytes actually fetched.

A return value of 0 is not necessarily an error - maybe there simply were no more bytes available when the method was called.

However, in case of error, it is also 0 that is returned. (There will be another function to check whether the source is still with us - and even another one to see whether a stream source signed off as a result of an error condition.)

Implemented in mxcpcCameraLiveMxPEGFastStreamPOSIX, mxcpcStreamFile, mxcpcStreamFileDumper, and mxcpcStreamStandardIn.

Referenced by mxcpcFramewiseMxPEGDecoder::decode(), and mxcpcStreamFileDumper::fetchBytes().


The documentation for this class was generated from the following files:
Generated on Mon Aug 15 03:40:04 2005 for mxcpc by  doxygen 1.4.2-20050421