X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkTranscriptor.cxx;h=e5e83b59a02837338c1b58e1798a6eb3a63cdd79;hb=355e3d011880c7febb568fd7a3c51b180cd23707;hp=ff0785b392013d6ce23a9ee1ebc91e20167cba8a;hpb=4a17a289103f77885e288aaae250e57c91ae3424;p=bbtk.git diff --git a/kernel/src/bbtkTranscriptor.cxx b/kernel/src/bbtkTranscriptor.cxx index ff0785b..e5e83b5 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/03/26 08:27:19 $ - Version: $Revision: 1.8 $ + Date: $Date: 2008/03/26 14:47:36 $ + Version: $Revision: 1.9 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -40,23 +40,53 @@ namespace bbtk * */ Transcriptor::Transcriptor(std::string filename) - : mPackage(0), - mRoot(0), + : mNoExecMode(false), mDialogMode(NoDialog) { //VirtualExec(); bbtkDebugMessageInc("Kernel",9,"Transcriptor::Transcriptor()" <UnRegisterBlackBox("workspace"); - delete mRoot; - } - if (mPackage) - { - //GetGlobalFactory()->UnLoadPackage("user"); - } - - if(m_Fp) - { - bbtkDebugDecTab("Kernel",9); - m_Fp << " }" << std::endl; - m_Fp.close(); - // delete m_Fp; - } - } + bbtkDebugMessageInc("Kernel",9,"Transcriptor::~Transcriptor()" <Reset( );" << std::endl; @@ -130,7 +159,7 @@ std::cout << "====================================================== delete Tran void Transcriptor::Create ( const std::string& nodeType, const std::string& nodeName) { - m_Fp << " e->Add(\"" << nodeType << "\", \"" + m_Fp << " e->Create(\"" << nodeType << "\", \"" << nodeName << "\");" << std::endl; } @@ -162,8 +191,8 @@ std::cout << "====================================================== delete Tran const std::string& help) { - m_Fp << " e->DefineInput(\""<< name << "\", " << box << ", " - << input << ", \"" << help << "\");" << std::endl; + m_Fp << " e->DefineInput(\""<< name << "\", \"" << box << "\", \"" + << input << "\", \"" << help << "\");" << std::endl; } @@ -199,27 +228,25 @@ std::cout << "====================================================== delete Tran void Transcriptor::Author(const std::string &authorName) { - m_Fp << " e->AddToAuthor(\"" << authorName << "\")" << std::endl; + m_Fp << " e->Author(\"" << authorName << "\");" << std::endl; } void Transcriptor::Category(const std::string &category) { - m_Fp << " e->AddToCategory(\"" << category << "\")" << std::endl; + m_Fp << " e->Category(\"" << category << "\");" << std::endl; } void Transcriptor::Description(const std::string &d) { - m_Fp << " e->AddToDescription(\"" << d << "\")" << std::endl; + m_Fp << " e->Description(\"" << d << "\");" << std::endl; } /// prints the list of the boxes of the current descriptor void Transcriptor::PrintBoxes() { - m_Fp << " e->PrintBoxes( )" << std::endl; + m_Fp << " e->PrintBoxes( );" << std::endl; } -// =========================End of Battlefield ======================================================================== - std::string Transcriptor::ShowGraph(const std::string &nameblackbox, const std::string &detailStr, const std::string &levelStr, @@ -254,7 +281,7 @@ void Transcriptor::ShowRelations(const std::string &nameblackbox, const std::str void Transcriptor::Print(const std::string & message) { - m_Fp << " e->Print(\"" <Print(\"" <SetMessageLevel(\"" <SetMessageLevel(\"" <HelpMessages()"<HelpMessages();"<LoadPackage(\"" <LoadPackage(\"" <UnLoadPackage(\"" <UnLoadPackage(\"" <