#include <SDIFCollection.hxx>
The Collection has the possibility to create the Streams to which the frames belong, either on the fly, or on command
Typically, Collection is passed to File::Read, as the place the store the read Frames.
Definition at line 42 of file SDIFCollection.hxx.
Public Types | |
typedef std::list< Stream * > ::const_iterator | StreamIterator |
Public Member Functions | |
Collection (bool autoStreamAdding=true) | |
virtual | ~Collection () |
void | Add (Frame *pFrame) |
virtual function that where derived classes get the frames read by the File. | |
void | Add (Stream *pStream) |
FrameIterator | Begin (void) const |
FrameIterator | End (void) const |
StreamIterator | BeginStreams (void) const |
StreamIterator | EndStreams (void) const |
Stream * | FindStream (CLAM::TInt32 streamId) |
Stream * | FindStream (TypeId streamTypeId) |
void | ParseStreams (void) |
typedef std::list<Stream*>::const_iterator SDIF::Collection::StreamIterator |
Definition at line 45 of file SDIFCollection.hxx.
SDIF::Collection::Collection | ( | bool | autoStreamAdding = true |
) |
Definition at line 30 of file SDIFCollection.cxx.
virtual SDIF::Collection::~Collection | ( | ) | [inline, virtual] |
Definition at line 59 of file SDIFCollection.hxx.
void SDIF::Collection::Add | ( | Frame * | pFrame | ) | [virtual] |
virtual function that where derived classes get the frames read by the File.
Note that the derived class is responsible for handling the memory deallocation of the frames it gets passed.
Implements SDIF::Storage.
Definition at line 35 of file SDIFCollection.cxx.
References SDIF::Stream::Add(), CLAM_ASSERT, FindStream(), SDIF::Frame::mHeader, SDIF::DataFrameHeader::mStreamId, SDIF::FrameHeader::mType, and SDIF::Stream::StreamType().
Referenced by ParseStreams().
void SDIF::Collection::Add | ( | Stream * | pStream | ) |
Definition at line 53 of file SDIFCollection.cxx.
FrameIterator SDIF::Collection::Begin | ( | void | ) | const [inline, virtual] |
FrameIterator SDIF::Collection::End | ( | void | ) | const [inline, virtual] |
StreamIterator SDIF::Collection::BeginStreams | ( | void | ) | const [inline] |
Definition at line 67 of file SDIFCollection.hxx.
StreamIterator SDIF::Collection::EndStreams | ( | void | ) | const [inline] |
Definition at line 68 of file SDIFCollection.hxx.
Stream * SDIF::Collection::FindStream | ( | CLAM::TInt32 | streamId | ) |
Definition at line 82 of file SDIFCollection.cxx.
References SDIF::Stream::StreamId().
Referenced by Add(), and ParseStreams().
void SDIF::Collection::ParseStreams | ( | void | ) |
Definition at line 58 of file SDIFCollection.cxx.
References SDIF::Stream::Add(), Add(), FindStream(), SDIF::Frame::mHeader, SDIF::DataFrameHeader::mStreamId, and SDIF::FrameHeader::mType.