Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

CJoinInterleave Class Reference

Sample CJoin. More...

#include <Examples.h>

Inheritance diagram for CJoinInterleave:

Inheritance graph
[legend]
Collaboration diagram for CJoinInterleave:

Collaboration graph
[legend]
List of all members.

Public Member Functions

AxPipe::CSegIn ()
 The overridden In().


Detailed Description

Sample CJoin.

This is a copying pattern example to use to create CJoin based derivations. It reads segments of data from a number of streams and interleaves them in the output. It's actually rather uncontrolled, since the size of the segments provided etc is up to respective stream but this is just a basic template.

Definition at line 53 of file Examples.h.


Member Function Documentation

AxPipe::CSeg * CJoinInterleave::In  )  [virtual]
 

The overridden In().

This is what must be overriden to actually do anything. The following is a sample that picks data from one, and then the other, until end of all streams is reached.

Returns:
A segment from each input stream in round-robin fashion until all are empty.

Implements AxPipe::CSource.

Definition at line 77 of file Examples.cpp.

References AxPipe::CSeg::Len(), AxPipe::CJoin::StreamEmpty(), AxPipe::CJoin::StreamIx(), and AxPipe::CJoin::StreamSeg().


The documentation for this class was generated from the following files:
Generated on Mon Feb 2 13:19:21 2004 for AxPipe by doxygen 1.3.5