#include <iso_synth_link.h>
Collaboration diagram for iso::synth::Link:
Public Member Functions | |
Link (InputPort *pInputPort, OutputPort *pOutputPort, ChannelMap *pMap=NULL) throw (SynthException) | |
paramater based contructor | |
~Link () | |
destructor | |
const String & | name () const |
returns link name | |
InputPort * | inputPort () |
returns input port | |
OutputPort * | outputPort () |
returns output port | |
unsigned long | processStep () |
returns process step | |
ChannelMap * | channelMap () |
returns channel map | |
void | process (Buffer *pBuffer) |
signal processing | |
String | info (bool pPropagate=false) const |
obtain textual link information | |
void | fade (sample pDuration, LinkFadeMode pFadeMode) |
fade link | |
bool | fading () const |
check if link is fading | |
Static Public Attributes | |
static const String | sClassName |
default name | |
Protected Member Functions | |
Link () | |
default constructor | |
Protected Attributes | |
String | mName |
link name | |
InputPort * | mInputPort |
associated input port | |
OutputPort * | mOutputPort |
associated output port | |
ChannelMap * | mChannelMap |
channelMap; | |
LinkConversionStrategy * | mConversionStrategy |
if not NULL: controls link conversion strategy | |
LinkFadeStrategy * | mLinkFadeStrategy |
link fade strategy | |
unsigned long | mProcessStep |
number of times the link has executed it's process function | |
Friends | |
std::ostream & | operator<< (std::ostream &pOstream, const Link &pLink) |
print link information |
ports
Created by Daniel Bisig on 5/17/06. Copyright 2006 Daniel Bisig All rights reserved.
Link::Link | ( | InputPort * | pInputPort, | |
OutputPort * | pOutputPort, | |||
ChannelMap * | pMap = NULL | |||
) | throw (SynthException) |
paramater based contructor
pInputPort | input port | |
pOutputPort | output port | |
pMap | channel map |
Link::~Link | ( | ) |
destructor
Link::Link | ( | ) | [protected] |
default constructor
const base::String & Link::name | ( | ) | const |
returns link name
InputPort * Link::inputPort | ( | ) |
returns input port
OutputPort * Link::outputPort | ( | ) |
returns output port
unsigned long Link::processStep | ( | ) |
returns process step
ChannelMap * Link::channelMap | ( | ) |
returns channel map
void Link::process | ( | Buffer * | pBuffer | ) |
signal processing
base::String Link::info | ( | bool | pPropagate = false |
) | const |
obtain textual link information
pPropagate | if true, the link calls the info method of it's associated output port |
void Link::fade | ( | sample | pDuration, | |
LinkFadeMode | pFadeMode | |||
) |
fade link
pDuration | fade duration in milisecs | |
pFadeMode | fade mode |
bool Link::fading | ( | ) | const |
check if link is fading
std::ostream& operator<< | ( | std::ostream & | pOstream, | |
const Link & | pLink | |||
) | [friend] |
print link information
const base::String Link::sClassName [static] |
default name
String iso::synth::Link::mName [protected] |
link name
InputPort* iso::synth::Link::mInputPort [protected] |
associated input port
OutputPort* iso::synth::Link::mOutputPort [protected] |
associated output port
ChannelMap* iso::synth::Link::mChannelMap [protected] |
channelMap;
if not NULL: controls link conversion strategy
LinkFadeStrategy* iso::synth::Link::mLinkFadeStrategy [protected] |
link fade strategy
used mainly for fading a link that is going to be disconnected or has recently been connected NULL if link is not fading
unsigned long iso::synth::Link::mProcessStep [protected] |
number of times the link has executed it's process function