X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkComplexBlackBoxDescriptor.cxx;h=d9e8da14fffa779c90cd7d9dafc10c47a755a636;hb=a4fe3363034ebb3d905fc1cdbc6725539bf272a1;hp=1afb3f60e9dbc21ecc29a08d3a45651b8da8877a;hpb=6ad84645e7e5971e3a7b166bd3099c06c343010f;p=bbtk.git diff --git a/kernel/src/bbtkComplexBlackBoxDescriptor.cxx b/kernel/src/bbtkComplexBlackBoxDescriptor.cxx index 1afb3f6..d9e8da1 100644 --- a/kernel/src/bbtkComplexBlackBoxDescriptor.cxx +++ b/kernel/src/bbtkComplexBlackBoxDescriptor.cxx @@ -3,8 +3,8 @@ Program: bbtk Module: $RCSfile: bbtkComplexBlackBoxDescriptor.cxx,v $ Language: C++ - Date: $Date: 2008/02/08 07:39:49 $ - Version: $Revision: 1.8 $ + Date: $Date: 2008/03/07 10:21:30 $ + Version: $Revision: 1.12 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -33,7 +33,8 @@ namespace bbtk //======================================================================= /// Default ctor ComplexBlackBoxDescriptor::ComplexBlackBoxDescriptor(const std::string& name) - : BlackBoxDescriptor() + : BlackBoxDescriptor(), + mFactory(0) { bbtkDebugMessageInc("Kernel",9,"ComplexBlackBoxDescriptor::ComplexBlackBoxDescriptor(\""<bbUnsafeGetBlackBox( name ) ) @@ -94,7 +100,7 @@ namespace bbtk bbtkError("a black box \""<bbAddBlackBox ( /*mFactory->Create*/ NewBlackBox(type,name) ); + mPrototype->bbAddBlackBox ( mFactory->NewBlackBox(type,name) ); bbtkDebugDecTab("Kernel",5); } @@ -135,6 +141,13 @@ namespace bbtk <bbGetBlackBox( from ); if ( !bbfrom ) @@ -147,7 +160,7 @@ namespace bbtk bbtkError("the black box \""<*/ NewConnection( bbfrom, output, bbto, input ); + Connection* c = mFactory->NewConnection( bbfrom, output, bbto, input ); mPrototype->bbAddConnection(c); @@ -311,8 +324,9 @@ namespace bbtk std::string inc = GetScriptFileName(); if (inc.size()>0) { - (s) << " To use it : include " - << inc << "\n"; + s << " To use it : include "; + s << inc << "  [source]"; + s << "\n"; }