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) )
{
<<"' 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 + "-"
// LG : Connection Update does not set mTo as modified
mTo->bbSetInput(mInput, mFrom->bbGetOutput(mOutput),false);
}
-
}
//==================================================================
// http://gcc.gnu.org/ml/gcc/2003-04/msg00256.html
// http://gcc.gnu.org/ml/gcc-bugs/2003-10/msg02771.html
-#define BBTK_RTLD_LOCAL
+//EED2021-09-04
+#ifdef __APPLE__
+#else
+ #define BBTK_RTLD_LOCAL
+#endif
#ifndef BBTK_RTLD_LOCAL
# define BBTK_RTLD_SCOPE RTLD_GLOBAL
-#else
+#else
# define BBTK_RTLD_SCOPE RTLD_LOCAL
#endif
const std::string &input,
const std::string &value)
{
- BlackBox::Pointer b = GetCurrentDescriptor()->GetPrototype()->bbGetBlackBox(box);
+ BlackBox::Pointer b = GetCurrentDescriptor()->GetPrototype()->bbGetBlackBox(box);
// Looks for the adaptor
if ( ( b->bbGetInputType(input) != typeid(bbtk::any<bbtk::thing>) )&&
a->bbExecute();
b->bbSetInput(input,a->bbGetOutput("Out"));
// a->Delete();
- }
- else
- {
+ } else {
std::string v(value);
b->bbSetInput(input,v);
}
//b->bbSetInput(input,a->bbGetOutput("Out"));
// a->bbDelete();
return r;
- }
- else
- {
+ } else {
b->bbExecute();
return b->bbGetOutput(output).unsafe_get<std::string>();
// std::string v = *((std::string*)b->bbGetOutput(output)) ;
}
bbtkDebugDecTab("kernel",7);
- return b;
+ return b;
}
//===================================================================
void *handler;
handler = dlopen(libname.c_str(), BBTK_RTLD_TIME | BBTK_RTLD_SCOPE );
// handler = dlopen(libname.c_str(), RTLD_LAZY | RTLD_LOCAL );
-
if (!handler)
{
bbtkMessage("package",0,
const DataInfo& typeout,
const std::string& name) const
{
- bbtkDebugMessageInc("kernel",8,"Package<"<<GetName()<<
+ bbtkDebugMessageInc("kernel",8,"Package<"<<GetName()<<
">::NewAdaptor("
<<typein<<","
<<typeout<<",\""
}
BlackBox::Pointer bb =i->second.lock()->NewBlackBox(name);
bbtkDebugDecTab("kernel",8);
- return bb;
-
+ return bb;
}
//==========================================================================