X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkFactory.cxx;h=6b4079344912f2c976bba2e3e209c044990f6d7e;hb=c220f17e961419621d2d047023f3c20e33dc4773;hp=5e9c395b9ff66c5119043a2c7c6105a4e4427c08;hpb=c03be5662c1ea498e612cbaa9f9b7a9988a65765;p=bbtk.git diff --git a/kernel/src/bbtkFactory.cxx b/kernel/src/bbtkFactory.cxx index 5e9c395..6b40793 100644 --- a/kernel/src/bbtkFactory.cxx +++ b/kernel/src/bbtkFactory.cxx @@ -4,8 +4,8 @@ Program: bbtk Module: $RCSfile: bbtkFactory.cxx,v $ Language: C++ -Date: $Date: 2008/03/07 08:40:14 $ -Version: $Revision: 1.27 $ +Date: $Date: 2008/03/11 12:27:21 $ +Version: $Revision: 1.30 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de @@ -80,6 +80,14 @@ namespace bbtk //=================================================================== void Factory::Reset() { + /* +printf("EED kkkkkkkkkkkkkkkkkkkkkkkk Factory::Reset() \n"); +printf("EED kkkkkkkkkkkkkkkkkkkkkkkk Factory::Reset() \n"); +printf("EED kkkkkkkkkkkkkkkkkkkkkkkk Factory::Reset() \n"); +printf("EED kkkkkkkkkkkkkkkkkkkkkkkk Factory::Reset() \n"); +printf("EED kkkkkkkkkkkkkkkkkkkkkkkk Factory::Reset() \n"); +printf("EED kkkkkkkkkkkkkkkkkkkkkkkk Factory::Reset() \n"); + */ bbtkDebugMessageInc("Kernel",7,"Factory::Reset()"<bbGetName()<<"\",\""<bbGetOutputType(output).name() ); - std::string t2 ( to->bbGetInputType(input).name() ); - - - if ( t1 == t2 ) - //from->bbGetOutputType(output) == - // to->bbGetInputType(input) ) - { - c = new Connection(from,output,to,input); - } - else - { - // std::cout << "Adaptive connection "<bbGetName() + "." + output + "-" - + to->bbGetName() + "." + input; - - BlackBox* b = 0; - PackageMapType::const_iterator i; - for (i = mPackageMap.begin(); i!=mPackageMap.end(); ++i ) - { - b = i->second.mPackage->NewAdaptor(from->bbGetOutputType(output), - to->bbGetInputType(input), - name); - if (b) break; - } - if (!b) - { - bbtkError("did not find any <" - <bbGetOutputType(output)) - <<"> to <" - <bbGetInputType(input)) - <<"> adaptor"); - } - c = new AdaptiveConnection(from,output,to,input,b); - } - bbtkDebugDecTab("Kernel",7); - - return c; - */ + return new Connection(from,output,to,input,this); } //===================================================================