X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=kernel%2Fsrc%2FbbtkFactory.cxx;h=cfd3c6ec531894a0a3dcda4aeab7b906be244ce8;hb=731d9ee262e286a24e3ea2776d8e914950840a2c;hp=f118bef9b944060282cf9936ee7680c5c63b1e5e;hpb=e5759b9960326cfbe5f585fd296a355706f5fd01;p=bbtk.git diff --git a/kernel/src/bbtkFactory.cxx b/kernel/src/bbtkFactory.cxx index f118bef..cfd3c6e 100644 --- a/kernel/src/bbtkFactory.cxx +++ b/kernel/src/bbtkFactory.cxx @@ -2,8 +2,8 @@ Program: bbtk Module: $RCSfile: bbtkFactory.cxx,v $ Language: C++ - Date: $Date: 2010/04/28 22:19:59 $ - Version: $Revision: 1.48 $ + Date: $Date: 2010/09/12 14:59:29 $ + Version: $Revision: 1.51 $ =========================================================================*/ /* --------------------------------------------------------------------- @@ -533,6 +533,22 @@ namespace bbtk //=================================================================== +// ups3 EED borrame + std::string Factory::GetPackageNameOfaBlackBox(std::string boxType) + { + std::string result=""; + PackageMapType::const_iterator i; + for (i = mPackageMap.begin(); i!=mPackageMap.end(); ++i ) + { + if ( i->second->ifBoxExist( boxType ) == true) + { + result = i->first; + } + } + return result; + } + + //=================================================================== /// Creates an instance of a black box of type with name BlackBox::Pointer Factory::NewBlackBox(const std::string& type,