<<std::endl);
//
if (!GetFactory())
- {
- bbtkError("ComplexBlackBoxDescriptor::Connect : no factory set");
- }
+ {
+ bbtkError("ComplexBlackBoxDescriptor::Connect : no factory set");
+ }
-
// Verify that a box with the same name does not exist already
BlackBox::Pointer bbfrom = mPrototype->bbGetBlackBox( from );
if ( !bbfrom )
- {
- bbtkError("the black box \""<<from<<"\" does not exist");
- }
+ {
+ bbtkError("the black box \""<<from<<"\" does not exist");
+ }
BlackBox::Pointer bbto = mPrototype->bbGetBlackBox( to );
if ( !bbto )
- {
- bbtkError("the black box \""<<to<<"\" does not exist");
- }
-
- Connection::Pointer c
- = GetFactory()->NewConnection( bbfrom, output, bbto, input );
-
+ {
+ bbtkError("the black box \""<<to<<"\" does not exist");
+ }
+ Connection::Pointer c = GetFactory()->NewConnection( bbfrom, output, bbto, input );
mPrototype->bbAddConnection(c);
-
-
}
//=======================================================================