X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkExecuter.cxx;h=2bb24d8e12b8eec87092a6d6b6056a061313c206;hb=51be19a0b4d980ef0bdcbbfc5c8255d811de1883;hp=e925a1fd57b10c46309251af5c1ab625c452a6d0;hpb=a7b5e75baf0af42a27092233d3b3350d8ec2d5da;p=bbtk.git diff --git a/kernel/src/bbtkExecuter.cxx b/kernel/src/bbtkExecuter.cxx index e925a1f..2bb24d8 100644 --- a/kernel/src/bbtkExecuter.cxx +++ b/kernel/src/bbtkExecuter.cxx @@ -3,8 +3,8 @@ Program: bbtk Module: $RCSfile: bbtkExecuter.cxx,v $ $ Language: C++ - Date: $Date: 2008/02/05 11:07:42 $ - Version: $Revision: 1.5 $ + Date: $Date: 2008/02/06 10:53:02 $ + 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 @@ -47,9 +47,9 @@ namespace bbtk { //VirtualExec(); - bbtkDebugMessageInc("Core",9,"Executer::Executer()" <UnRegisterBlackBox("workspace"); @@ -67,7 +67,7 @@ namespace bbtk { GetGlobalFactory()->UnLoadPackage("user"); } - bbtkDebugDecTab("Core",9); + bbtkDebugDecTab("Kernel",9); } @@ -76,7 +76,7 @@ namespace bbtk */ void Executer::Reset() { - bbtkDebugMessageInc("Core",9,"Executer::Reset()" <SetScriptFileName(scriptfilename); mOpenDefinition.push_back( CBBDefinition( b, pack ) ); - bbtkDebugDecTab("Core",9); + bbtkDebugDecTab("Kernel",9); } + /// Sets the file name to use for the current definition + /// (Used to set it after the Define command) + void Executer::SetCurrentFileName (const std::string &name ) + { + mOpenDefinition.back().box->SetScriptFileName(name); + } + + void Executer::EndDefine () { - bbtkDebugMessageInc("Core",9,"Executer::EndDefine(\"" + bbtkDebugMessageInc("Kernel",9,"Executer::EndDefine(\"" <GetTypeName()<<"\")" <AddToAuthor(authorName,Current()==mRoot); } - void Executer::Keyword(const std::string &keyword) + void Executer::Category(const std::string &category) { - Current()->AddToKeyword(keyword,Current()==mRoot); + Current()->AddToCategory(category,Current()==mRoot); } void Executer::Description(const std::string &d) @@ -429,14 +437,14 @@ namespace bbtk // No output provided : automatic generation if (output_html.length() == 0) { - // Don't pollute the file store with "doc_tmp" directories ... - std::string default_doc_dir = ConfigurationFile::GetInstance().Get_default_doc_tmp(); + // Don't pollute the file store with "temp_dir" directories ... + std::string default_doc_dir = ConfigurationFile::GetInstance().Get_default_temp_dir(); char c = default_doc_dir.c_str()[strlen(default_doc_dir.c_str())-1]; std::string directory = default_doc_dir; if (c != '/' && c !='\\') directory = directory + "/"; - directory = directory + "doc_tmp"; + directory = directory + "temp_dir"; filename_rootHtml = directory + "/" + "User.html"; simplefilename_rootHtml = "User.html" ; @@ -498,16 +506,16 @@ namespace bbtk if (blackbox) { - // Don't pollute the file store with "doc_tmp" directories ... - std::string default_doc_dir = ConfigurationFile::GetInstance().Get_default_doc_tmp(); + // Don't pollute the file store with "temp_dir" directories ... + std::string default_doc_dir = ConfigurationFile::GetInstance().Get_default_temp_dir(); char c = default_doc_dir.c_str()[strlen(default_doc_dir.c_str())-1]; std::string directory = default_doc_dir; if (c != '/' && c !='\\') directory = directory + "/"; - directory = directory + "doc_tmp"; + directory = directory + "temp_dir"; - //std::string directory("doc_tmp"); + //std::string directory("temp_dir"); std::string filename(directory + "/" + "bbtk_graph_pipeline"); std::string filename_html(filename+".html"); std::string command0("mkdir \""+directory + "\"");