X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkTranscriptor.cxx;h=258ad8379d80b3600d3c30508b2b8a9b5b3aa617;hb=de8f304f9cf8b0ba45873af60c422147a1e33560;hp=cc666b79245efd6cbfc18f81cb4e7918e5718632;hpb=6c5d7746e8e4cb0b5d6e164b917008a7137910fb;p=bbtk.git diff --git a/kernel/src/bbtkTranscriptor.cxx b/kernel/src/bbtkTranscriptor.cxx index cc666b7..258ad83 100644 --- a/kernel/src/bbtkTranscriptor.cxx +++ b/kernel/src/bbtkTranscriptor.cxx @@ -3,8 +3,8 @@ Program: bbtk Module: $RCSfile: bbtkTranscriptor.cxx,v $ $ Language: C++ - Date: $Date: 2008/04/08 06:59:30 $ - Version: $Revision: 1.10 $ + Date: $Date: 2008/04/21 07:01:52 $ + 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 @@ -36,10 +36,15 @@ namespace bbtk { + Transcriptor::Pointer Transcriptor::New(const std::string& filename) + { + return MakePointer(new Transcriptor(filename)); + } + /** * */ - Transcriptor::Transcriptor(std::string filename) + Transcriptor::Transcriptor(const std::string& filename) : mNoExecMode(false), mDialogMode(NoDialog) @@ -54,7 +59,7 @@ namespace bbtk file = bbtk::Utilities::ExtractScriptName(filename,path); m_Fp << "#include \"bbtkExecuter.h\"" << std::endl; - m_Fp << "void " << file << "(bbtk::Executer* e)"<UnLoadPackage(\"" <