23 #ifndef _Processing_hxx_
24 #define _Processing_hxx_
45 class ProcessingComposite;
52 Processing & sender,
const std::string & outPortName,
53 Processing & receiver,
const std::string & inPortName );
59 Processing & sender,
unsigned outPortNumber,
60 Processing & receiver,
unsigned inPortNumber );
66 Processing & sender,
unsigned outControlNumber,
67 Processing & receiver,
unsigned inControlNumber );
73 Processing & sender,
const std::string & outControlName,
74 Processing & receiver,
const std::string & inControlName );
79 void ConnectTypedControls(
80 Processing & sender,
unsigned typedOutControlNumber,
81 Processing & receiver,
unsigned typedInControlNumber );
85 void ConnectTypedControls(
86 Processing & sender,
const std::string & typedOutControlName,
87 Processing & receiver,
const std::string & typedInControlName );
96 Processing & receiver,
unsigned inPortNumber );
102 Processing & sender,
unsigned outPortNumber,
103 InPortBase & receiver );
109 void SendFloatToInControl(Processing & receiver,
const std::string & inControlName,
float value);
230 virtual bool Do(
void)=0;
320 ExecState GetExecState()
const {
return _execState;}
344 return mInPortRegistry.
Has(name);
349 return mOutPortRegistry.
Has(name);
354 return mInControlRegistry.
Has(name);
359 return mOutControlRegistry.
Has(name);
364 return mInPortRegistry.
Get(name);
368 return mOutPortRegistry.
Get(name);
372 return mInControlRegistry.
Get(name);
376 return mOutControlRegistry.
Get(name);
396 return mInPortRegistry.
Size();
400 return mOutPortRegistry.
Size();
404 return mInControlRegistry.
Size();
408 return mOutControlRegistry.
Size();
456 template <
typename ConcreteConfig>
475 std::string _configErrorMessage;
496 err +=
": Do(): Not in execution mode - did you call Start on this "
497 "object, the composite it is in, or the ToplevelProcessing singleton?";
504 template <
typename ConcreteConfig>
507 CLAM_ASSERT(
typeid(ConcreteConfig)==
typeid(
abstract),
508 (std::string(
"Configuring a processing with a configuration of type ") +
typeid(
abstract).name() +
509 " while it was expected a " +
typeid(ConcreteConfig).name() +
".").c_str());
510 concrete =
static_cast<const ConcreteConfig &
>(
abstract);