--- /dev/null
+@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 ! **"
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
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);
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
const std::string& output_dir,
bool relative_link )
{
+printf("BlackBoxDescriptor::InsertHtmlHelp 01 lllllllllllllllllllllllllllllllllllllllllllllllll \n");
bbtkDebugMessageInc("Kernel",9,"BlackBoxDescriptor::InsertHtmlHelp() ["<<GetTypeName()<<"]"<<std::endl);
//-------------
// End
bbtkDebugDecTab("Kernel",9);
+printf("BlackBoxDescriptor::InsertHtmlHelp 02 lllllllllllllllllllllllllllllllllllllllllllllllll \n");
}
//=========================================================================
Program: bbtk
Module: $RCSfile: bbtkComplexBlackBox.cxx,v $
Language: C++
-Date: $Date: 2008/02/08 10:05:38 $
-Version: $Revision: 1.4 $
+Date: $Date: 2008/02/18 10:41:02 $
+Version: $Revision: 1.5 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
bool instanceOrtype,
bool relative_link )
{
+printf("EED ComplexBlackBox::bbWriteDotFileBlackBox 01\n");
std::string tmp1;
std::string valueStr("");
Package *package = this->bbGetDescriptor()->GetPackage();
} // if second
} // for
} // if parentblackbox
-
+printf("EED ComplexBlackBox::bbWriteDotFileBlackBox 02\n");
}
//=========================================================================
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
int detail, int level,
const std::string& output_dir, bool relative_link)
{
+printf("ComplexBlackBoxDescriptor::InsertHtmlHelp 01 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n");
bbtkDebugMessageInc("Kernel",9,
"ComplexBlackBoxDescriptor::InsertHtmlHelp() ["
<<GetTypeName()<<"]"<<std::endl);
// End
bbtkDebugDecTab("Kernel",9);
+printf("ComplexBlackBoxDescriptor::InsertHtmlHelp 02 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n");
}
//=========================================================================
Program: bbtk
Module: $RCSfile: bbtkConfigurationFile.cxx,v $
Language: C++
- Date: $Date: 2008/02/15 08:46:17 $
- 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
// always add "." (current working directory) at the begining
mBbs_paths.push_back(".");
// add system bbs path
+#ifdef WIN32
+//EED for windows BUILD tree
+ mBbs_paths.push_back(mInstall_path + mFile_separator + ".." + mFile_separator + mBbs_rel_path);
+#endif
mBbs_paths.push_back(mBbs_path);
+
// always add "." (current working directory) at the begining
mPackage_paths.push_back(".");
-#ifndef WIN32
// add system bin path (for build tree / standalone folder install)
mPackage_paths.push_back(mBin_path);
// add system lib path (for install tree)
mPackage_paths.push_back(mInstall_path + mFile_separator + "lib");
-#else
+#ifdef WIN32
// add bin/Debug bin/Release paths (for build/install tree)
mPackage_paths.push_back(mBin_path + mFile_separator + "Debug");
mPackage_paths.push_back(mBin_path + mFile_separator + "Release");
Module: $RCSfile: bbtkFactory.cxx,v $
Language: C++
-Date: $Date: 2008/02/14 13:44:25 $
-Version: $Revision: 1.21 $
+Date: $Date: 2008/02/18 10:41:02 $
+Version: $Revision: 1.22 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
//===================================================================
void Factory::WriteDotFilePackagesList(FILE *ff)
{
+printf("EED Factory::WriteDotFilePackagesList 01\n");
+
bbtkDebugMessageInc("Kernel",9,"Factory::WriteDotFilePackagesList()"
<<std::endl);
}
fprintf( ff , "}\n\n");
bbtkDebugDecTab("Kernel",9);
+printf("EED Factory::WriteDotFilePackagesList 02\n");
}
//===================================================================
void Factory::ShowGraphTypes(const std::string& name) const
{
+printf("EED Factory::ShowGraphTypes 01\n");
+
bool found = false;
PackageMapType::const_iterator i;
for (i = mPackageMap.begin(); i!=mPackageMap.end(); ++i )
bbtkError("No package of the factory contains any black box <"
<<name<<">");
}
+printf("EED Factory::ShowGraphTypes 02\n");
}
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
#include "bbtkWxConsole.h"
#include "bbtkUtilities.h"
#include <sys/stat.h>
+#include <algorithm>
#ifdef CMAKE_HAVE_TERMIOS_H
#include <termios.h>
#define BBTK_USE_TERMIOS_BASED_PROMPT
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)
bbtkDecTab("Interpreter",9);
mCommandLine = exm;
+ printf("EED: Interpreter::InterpretFile 02\n");
}
//=======================================================================
std::string path;
std::vector<std::string>::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;
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.
nbBssFiles = 0;
for (std::vector<std::string>::iterator i = Filenames.begin(); i!= Filenames.end(); ++i)
{
-
if ((*i).substr((*i).size()-4, 4) != ".bbs")
continue; // ignore non .bbs files
LoadScript(*i,name);
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
// 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);
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
// b->bbSetInput(input,&v);
}
*/
+// EED Windows
+return "";
}
#include "bbtkUtilities.h"
-
+
namespace bbtk
{
bool Utilities::loosematch(std::string stdLine,std::string stdOptions)
{
bool result=false;
- char charTmp;
std::vector<std::string> tokens;
SplitString ( stdOptions,"|", tokens);
- int j,sizeStdLineTmp;
int i,size=tokens.size();
for (i=0; i<size; i++)
{
+#ifdef WIN32
+ if ( strcmpi(stdLine.c_str(),tokens[i].c_str())==0)
+ {
+ result=true;
+ }
+#else
if ( strcasecmp(stdLine.c_str(),tokens[i].c_str())==0)
{
result=true;
}
+#endif
+
}
return result;
}
Program: bbtk
Module: $RCSfile: bbtkUtilities.h,v $
Language: C++
- Date: $Date: 2008/02/08 14:58:31 $
- Version: $Revision: 1.11 $
+ Date: $Date: 2008/02/18 10:41:02 $
+ 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
// WIN 32 mechanism
// shared lib name = <name>.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());
}
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"));
}
#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;