+ //=========================================================================
+ /// Connects the input <name> to the connection c
+ void ComplexBlackBox::bbConnectInput( const std::string& name, Connection* c)
+ {
+ bbtkDebugMessageInc("Kernel",7,
+ "ComplexBlackBox::bbConnectInput(\""
+ <<name<<"\","<<c<<") ["
+ <<bbGetFullName()<<"]"
+ <<std::endl);
+
+ ComplexBlackBoxInputDescriptor* d = (ComplexBlackBoxInputDescriptor*)
+ bbGetDescriptor()->GetInputDescriptor(name);
+
+ BlackBox* t = bbGetBlackBox(d->GetTarget());
+ c->SetBlackBoxTo(t);
+ c->SetBlackBoxToInput(d->GetInput());
+ t->bbConnectInput(d->GetInput(),c);
+
+ bbtkMessage("Debug",1,"ComplexBlackBox["<<bbGetFullName()<<"]::bbConnectInput : "
+ <<c->GetFullName()<<std::endl);
+
+ bbtkDebugDecTab("Kernel",7);
+ }
+ //=========================================================================
+
+
+ //=========================================================================
+ /// Connects the output <name> to the connection c
+ void ComplexBlackBox::bbConnectOutput( const std::string& name, Connection* c)
+ {
+ bbtkDebugMessageInc("Kernel",7,
+ "ComplexBlackBox::bbConnectOutput(\""
+ <<name<<"\","<<c<<") ["
+ <<bbGetFullName()<<"]"<<std::endl);
+
+ ComplexBlackBoxOutputDescriptor* d = (ComplexBlackBoxOutputDescriptor*)
+ bbGetDescriptor()->GetOutputDescriptor(name);
+
+ BlackBox* t = bbGetBlackBox(d->GetTarget());
+ c->SetBlackBoxFrom(t);
+ c->SetBlackBoxFromOutput(d->GetOutput());
+ t->bbConnectOutput(d->GetOutput(),c);
+
+ bbtkMessage("Debug",1,"ComplexBlackBox["<<bbGetFullName()<<"]::bbConnectOutput : "
+ <<c->GetFullName()<<std::endl);
+
+ bbtkDebugDecTab("Kernel",7);
+ }
+ //=========================================================================
+
+