From: Eduardo Davila Date: Mon, 18 Feb 2008 10:41:02 +0000 (+0000) Subject: Windows compilation X-Git-Tag: r0.6.1~185 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=027bd220c2819146658da884f08b10ffc40545e3;p=bbtk.git Windows compilation --- diff --git a/kernel/doc/bbtkWebSite/bbtk-make-index.bat.in b/kernel/doc/bbtkWebSite/bbtk-make-index.bat.in new file mode 100644 index 0000000..865ece9 --- /dev/null +++ b/kernel/doc/bbtkWebSite/bbtk-make-index.bat.in @@ -0,0 +1,16 @@ +@echo off +echo "** Recreating bbtk doc index **" + +echo EED> "TMP=$(which $0|rev)" +echo EED>"TMP2=$(echo ${TMP#*/}|rev)" +echo EED">DIR=${TMP2}/../" + +echo "> cd ${DIR}/doc/bbdoc" +echo cd ${DIR}/doc/bbdoc + +echo "> bbi -n ./make-index" +..\..\bin\bbi -n .\make-index +..\..\bin\Debug\bbi -n .\make-index +..\..\bin\Release\bbi -n .\make-index + +echo "** Done ! **" diff --git a/kernel/src/bbtkBlackBox.cxx b/kernel/src/bbtkBlackBox.cxx index ae3ea1f..1c980b7 100644 --- a/kernel/src/bbtkBlackBox.cxx +++ b/kernel/src/bbtkBlackBox.cxx @@ -3,8 +3,8 @@ Program: bbtk Module: $RCSfile: bbtkBlackBox.cxx,v $ Language: C++ -Date: $Date: 2008/02/08 10:05:38 $ -Version: $Revision: 1.3 $ +Date: $Date: 2008/02/18 10:41:02 $ +Version: $Revision: 1.4 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See doc/license.txt or @@ -758,17 +758,19 @@ namespace bbtk bool instanceOrtype, bool relative_link ) - { + { InputConnectorMapType::iterator i; // label std::string labelStr; std::string valueStr(""); - if (detail==0) - { - labelStr = bbGetName() ; - } else { - labelStr = bbGetName(); - labelStr = labelStr + " [" +this->bbGetDescriptor()->GetPackage()->GetName()+"::"+ bbGetTypeName() + "] "; + + if (detail==0) { + labelStr = bbGetName() ; +//EED 18 Fev 2008 + labelStr = labelStr + "\\n[" +this->bbGetDescriptor()->GetPackage()->GetName()+"::"+ bbGetTypeName() + "]"; + } else { + labelStr = bbGetName(); + labelStr = labelStr + " [" +this->bbGetDescriptor()->GetPackage()->GetName()+"::"+ bbGetTypeName() + "] "; } SubsBrackets(labelStr); diff --git a/kernel/src/bbtkBlackBoxDescriptor.cxx b/kernel/src/bbtkBlackBoxDescriptor.cxx index 04ede1c..705197e 100644 --- a/kernel/src/bbtkBlackBoxDescriptor.cxx +++ b/kernel/src/bbtkBlackBoxDescriptor.cxx @@ -3,8 +3,8 @@ Program: bbtk Module: $RCSfile: bbtkBlackBoxDescriptor.cxx,v $ Language: C++ - Date: $Date: 2008/02/08 07:39:49 $ - Version: $Revision: 1.12 $ + Date: $Date: 2008/02/18 10:41:02 $ + Version: $Revision: 1.13 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -215,6 +215,7 @@ namespace bbtk const std::string& output_dir, bool relative_link ) { +printf("BlackBoxDescriptor::InsertHtmlHelp 01 lllllllllllllllllllllllllllllllllllllllllllllllll \n"); bbtkDebugMessageInc("Kernel",9,"BlackBoxDescriptor::InsertHtmlHelp() ["<bbGetDescriptor()->GetPackage(); @@ -953,7 +954,7 @@ namespace bbtk } // if second } // for } // if parentblackbox - +printf("EED ComplexBlackBox::bbWriteDotFileBlackBox 02\n"); } //========================================================================= diff --git a/kernel/src/bbtkComplexBlackBoxDescriptor.cxx b/kernel/src/bbtkComplexBlackBoxDescriptor.cxx index 99133da..6faae52 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 11:56:10 $ - Version: $Revision: 1.9 $ + Date: $Date: 2008/02/18 10:41:02 $ + Version: $Revision: 1.10 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -260,6 +260,7 @@ namespace bbtk int detail, int level, const std::string& output_dir, bool relative_link) { +printf("ComplexBlackBoxDescriptor::InsertHtmlHelp 01 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n"); bbtkDebugMessageInc("Kernel",9, "ComplexBlackBoxDescriptor::InsertHtmlHelp() [" <"); } +printf("EED Factory::ShowGraphTypes 02\n"); } diff --git a/kernel/src/bbtkInterpreter.cxx b/kernel/src/bbtkInterpreter.cxx index 7a7e08b..ced11fa 100644 --- a/kernel/src/bbtkInterpreter.cxx +++ b/kernel/src/bbtkInterpreter.cxx @@ -3,8 +3,8 @@ Program: bbtk Module: $RCSfile: bbtkInterpreter.cxx,v $ $ Language: C++ - Date: $Date: 2008/02/14 20:26:54 $ - Version: $Revision: 1.32 $ + Date: $Date: 2008/02/18 10:41:02 $ + Version: $Revision: 1.33 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -26,6 +26,7 @@ #include "bbtkWxConsole.h" #include "bbtkUtilities.h" #include +#include #ifdef CMAKE_HAVE_TERMIOS_H #include #define BBTK_USE_TERMIOS_BASED_PROMPT @@ -307,8 +308,11 @@ Interpreter* Interpreter::mGlobalInterpreter = NULL; bool exm = mCommandLine; mCommandLine = false; + try { +printf("EED: Interpreter::InterpretFile 01\n"); +InterpretLine("message ALL 9", exm); SwitchToFile(filename, use_configuration_file); bool insideComment = false; // for multiline comment while (mFile.size()>0) @@ -366,6 +370,7 @@ Interpreter* Interpreter::mGlobalInterpreter = NULL; bbtkDecTab("Interpreter",9); mCommandLine = exm; + printf("EED: Interpreter::InterpretFile 02\n"); } //======================================================================= @@ -789,7 +794,7 @@ void Interpreter::SplitLine ( const std::string& str, std::vector& std::string path; std::vector::iterator i; std::string fullDirectoryName; - for (i=script_paths.begin();i!=script_paths.end();++i)// ==== relative name, iterate + load all .bbs files + for (i=script_paths.begin();i!=script_paths.end();i++)// ==== relative name, iterate + load all .bbs files { path = *i; @@ -803,8 +808,12 @@ void Interpreter::SplitLine ( const std::string& str, std::vector& fullDirectoryName = Utilities::MakePkgnameFromPath(path, upath, false); + //EED 18 Fev 2008 + // without last slash "\" + std::string fullDirectoryNameClean = fullDirectoryName.substr(0,fullDirectoryName.size()-1); + // Check if library exists - if ( ! Utilities::IsDirectory(fullDirectoryName) ) + if ( ! Utilities::IsDirectory( fullDirectoryNameClean ) ) { // The following is *NOT* a debug time message : // It's a user intended message. @@ -821,7 +830,6 @@ void Interpreter::SplitLine ( const std::string& str, std::vector& nbBssFiles = 0; for (std::vector::iterator i = Filenames.begin(); i!= Filenames.end(); ++i) { - if ((*i).substr((*i).size()-4, 4) != ".bbs") continue; // ignore non .bbs files LoadScript(*i,name); diff --git a/kernel/src/bbtkPackage.cxx b/kernel/src/bbtkPackage.cxx index 558d0b2..7d70c25 100644 --- a/kernel/src/bbtkPackage.cxx +++ b/kernel/src/bbtkPackage.cxx @@ -3,8 +3,8 @@ Program: bbtk Module: $RCSfile: bbtkPackage.cxx,v $ Language: C++ - Date: $Date: 2008/02/12 12:55:16 $ - Version: $Revision: 1.8 $ + Date: $Date: 2008/02/18 10:41: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 @@ -602,9 +602,11 @@ namespace bbtk // Computes output directory from filename to pass it to // BlackBoxDescriptor::InsertHtmlHelp std::string dir; - std::string::size_type slash_position = - filename.find_last_of(ConfigurationFile::GetInstance().Get_file_separator ()); - if (slash_position != std::string::npos) { + + std::string::size_type slash_position = filename.find_last_of("/\\"); + + + if (slash_position != std::string::npos) { if (slash_position == 0) slash_position = 1; dir = filename.substr(0,slash_position); diff --git a/kernel/src/bbtkTranscriptor.cxx b/kernel/src/bbtkTranscriptor.cxx index 65c947d..0609b5f 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/02/14 20:23:51 $ - Version: $Revision: 1.5 $ + Date: $Date: 2008/02/18 10:41:02 $ + Version: $Revision: 1.6 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -456,6 +456,8 @@ std::cout << "====================================================== delete Tran // b->bbSetInput(input,&v); } */ +// EED Windows +return ""; } diff --git a/kernel/src/bbtkUtilities.cxx b/kernel/src/bbtkUtilities.cxx index 9a6b028..968853f 100644 --- a/kernel/src/bbtkUtilities.cxx +++ b/kernel/src/bbtkUtilities.cxx @@ -1,5 +1,5 @@ #include "bbtkUtilities.h" - + namespace bbtk { @@ -8,17 +8,23 @@ namespace bbtk bool Utilities::loosematch(std::string stdLine,std::string stdOptions) { bool result=false; - char charTmp; std::vector tokens; SplitString ( stdOptions,"|", tokens); - int j,sizeStdLineTmp; int i,size=tokens.size(); for (i=0; i.dll - // remove {bb} if any +// EED Problem loading package call bbtkTools +// // remove {bb} if any if (memcmp (pkgname.c_str(), "bb", 2) == 0) { pkgname = pkgname.substr(2, pkgname.length()); } diff --git a/kernel/src/xmlParser.cpp b/kernel/src/xmlParser.cpp index 3685776..49d05ca 100644 --- a/kernel/src/xmlParser.cpp +++ b/kernel/src/xmlParser.cpp @@ -404,6 +404,7 @@ static const char *XML_ByteTable=(const char *)XML_utf8ByteTable; // the default XMLError XMLNode::writeToFile(XMLCSTR filename, const char *encoding, char nFormat) const { +printf("EED XMLNode::writeToFile 01\n"); int i; XMLSTR t=createXMLString(nFormat,&i); FILE *f=_tfopen(filename,_T("wb")); @@ -437,6 +438,7 @@ XMLError XMLNode::writeToFile(XMLCSTR filename, const char *encoding, char nForm } #endif if (!fwrite(t,sizeof(XMLCHAR)*i,1,f)) return eXMLErrorCannotWriteFile; +printf("EED XMLNode::writeToFile 02\n"); if (fclose(f)!=0) return eXMLErrorCannotWriteFile; free(t); return eXMLErrorNone;