X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkConnection.cxx;h=9624cea27f25ffe92f4c73ab2389f6d998a8ea4b;hb=282043cd0db5791f4565ce0df0c8145feacbe868;hp=d3d73a924bd21658dbc7db86e325c9f2915280ce;hpb=cfad95b6e08e6e53846ffcda7fbc5932065f2c47;p=bbtk.git
diff --git a/kernel/src/bbtkConnection.cxx b/kernel/src/bbtkConnection.cxx
index d3d73a9..9624cea 100644
--- a/kernel/src/bbtkConnection.cxx
+++ b/kernel/src/bbtkConnection.cxx
@@ -119,12 +119,14 @@ Connection::Connection(BlackBox::Pointer from, const std::string& output,
bbtkError("The input \""<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," -> '"<()<<" : can receive any data"
<bbGetName() + "." + output + "-"
@@ -166,12 +164,12 @@ Connection::Connection(BlackBox::Pointer from, const std::string& output,
}
- mFrom = from;
- mOriginalFrom = from;
- mTo = to;
- mOriginalTo = to;
- mInput = mOriginalInput = input;
- mOutput = mOriginalOutput = output;
+ mFrom = from;
+ mOriginalFrom = from;
+ mTo = to;
+ mOriginalTo = to;
+ mInput = mOriginalInput = input;
+ mOutput = mOriginalOutput = output;
// Lock this pointer !!!
//Pointer p = MakePointer(this,true);
@@ -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);
}
-
}
//==================================================================