]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkConnection.cxx
#3403 vtk8itk5wx3-macos
[bbtk.git] / kernel / src / bbtkConnection.cxx
index e6ee23851e7288d08e4cfc37a460528bb797867d..9624cea27f25ffe92f4c73ab2389f6d998a8ea4b 100644 (file)
@@ -119,12 +119,14 @@ Connection::Connection(BlackBox::Pointer from, const std::string& output,
        bbtkError("The input \""<<input<<"\" of the box \""<<to->bbGetName()
                  <<"\" is already connected");
       }
-    
+
+
+      //EED2021-09-06  dlopen  flags for == !=    ->  bbtkDynamicLibraryHandling.h
+
     //  std::string t1 ( from->bbGetOutputType(output).name() );
     //   std::string t2 ( to->bbGetInputType(input).name() );
-    // if  //( t1 != t2 ) 
-    if ( from->bbGetOutputType(output) !=
-        to->bbGetInputType(input) )
+    // if  //( t1 != t2 )
+      if ( from->bbGetOutputType(output) != to->bbGetInputType(input) )
       {
        if ( from->bbGetOutputType(output) == typeid(Data) )
          {
@@ -136,16 +138,12 @@ Connection::Connection(BlackBox::Pointer from, const std::string& output,
                        <<"' will be resolved at run time"
                        );
            mFromAny = true;
-         }
-       else if (  to->bbGetInputType(input) == typeid(Data) )
-         {   
+         } else if (  to->bbGetInputType(input) == typeid(Data) ) {
            bbtkDebugMessage("kernel",8," -> '"<<input<<"' type is "
                             <<TypeName<Data>()<<" : can receive any data"
                             <<std::endl);
            mToAny = true;
-         }
-       else 
-         {
+         }     else  {
            //   std::cout << "Adaptive connection "<<std::endl;
            std::string name;
            name = from->bbGetName() + "." + output + "-" 
@@ -511,7 +509,6 @@ Connection::Connection(BlackBox::Pointer from, const std::string& output,
        // LG : Connection Update does not set mTo as modified
        mTo->bbSetInput(mInput, mFrom->bbGetOutput(mOutput),false);
       }
-
   }
   //==================================================================