AudioAdaptorChain Class Reference

<class description="" goes="" here=""> <short description=""> More...

#include <AudioAdaptorChain.hpp>

Inheritance diagram for AudioAdaptorChain:

AdaptorChain Adaptor List of all members.

Public Member Functions

 AudioAdaptorChain ()
 Constructor.
virtual ~AudioAdaptorChain ()
 Destructor.
virtual void setESInfo (ESInfo *esi)
 Sets a reference to an ESInfo object.
virtual ESInfogetESInfo ()
virtual Adaptorclone ()
 Create a shallow copy of the Adaptor.

Protected Attributes

AudioESInfo * es

Detailed Description

<class description="" goes="" here=""> <short description="">

Author:
Michael Kropfberger and Peter Schojer
Version:
Id
AudioAdaptorChain.hpp,v 1.5 2005/06/19 14:47:22 mkropfbe Exp

Definition at line 60 of file AudioAdaptorChain.hpp.


Constructor & Destructor Documentation

AudioAdaptorChain::AudioAdaptorChain  ) 
 

Constructor.

Definition at line 47 of file AudioAdaptorChain.cpp.

Referenced by clone().

00047 : AdaptorChain() 00048 { 00049 strcpy(name,"AudioAdaptorChain"); 00050 es=NULL; 00051 }

AudioAdaptorChain::~AudioAdaptorChain  )  [virtual]
 

Destructor.

Definition at line 53 of file AudioAdaptorChain.cpp.

00054 { 00055 00056 }


Member Function Documentation

Adaptor * AudioAdaptorChain::clone  )  [virtual]
 

Create a shallow copy of the Adaptor.

Creates an Adaptor with the same setup (without copying the current status).

Returns:
An Adaptor object.

Implements Adaptor.

Definition at line 77 of file AudioAdaptorChain.cpp.

References AdaptorChain::addAdaptor(), and AudioAdaptorChain().

00078 { 00079 AdaptorChain *adapt = new AudioAdaptorChain(); 00080 00081 list < Adaptor * >::iterator adaptorIterator; 00082 for (adaptorIterator = mAdaptorList.begin(); 00083 adaptorIterator != mAdaptorList.end(); adaptorIterator++) { 00084 adapt->addAdaptor((*adaptorIterator)->clone()); 00085 } 00086 return adapt; 00087 }

void AudioAdaptorChain::setESInfo ESInfo esi  )  [virtual]
 

Sets a reference to an ESInfo object.

Adaptors are allowed to change ESInfo objects. If you don't want that, pass an es->clone(). NEVER delete this es in the destructor of your Adaptor!

Reimplemented from Adaptor.

Definition at line 59 of file AudioAdaptorChain.cpp.

00060 { 00061 es=(AudioESInfo*)esi; 00062 list < Adaptor * >::iterator adaptorIterator; 00063 00064 for (adaptorIterator = mAdaptorList.begin(); 00065 adaptorIterator != mAdaptorList.end(); adaptorIterator++) { 00066 (*adaptorIterator)->setESInfo(esi); 00067 } 00068 };


The documentation for this class was generated from the following files: