ADD_CUSTOM_COMMAND(
OUTPUT ${DOC_OUTPUT}
COMMAND
- # tth
cd ${BBTK_BIN_PATH} && ${BBTK_BBI} -n ${OUTPUT_FILE}
- # ARGS
- # ${OUTPUT_FILE}
- # DEPENDS ${PACKAGE_NAME}
+ DEPENDS bb${PACKAGE_NAME}
)
ADD_CUSTOM_TARGET(bbdoc_${PACKAGE_NAME} ALL
DEPENDS ${DOC_OUTPUT}
"${OUTPUT_FILE}"
"#-----------------------------------------\n"
"define ${filename}\n"
- "include ${BBTK_PACKAGE_NAME}/${bbs}\n"
+ "include ${BBTK_PACKAGE_NAME}/${bbs} source\n"
"endefine\n"
)
CONFIGURE_FILE(
Program: bbtk
Module: $RCSfile: bbtkBlackBoxDescriptor.cxx,v $
Language: C++
- Date: $Date: 2008/02/05 13:23:46 $
- Version: $Revision: 1.7 $
+ Date: $Date: 2008/02/06 09:27:52 $
+ Version: $Revision: 1.8 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
<< descr << "</TD></TR>\n";
(s) << "<TR><TD style='vertical-align: top;'><b> Author(s) </b></TD><TD style='vertical-align: top;'> : </TD><TD style='vertical-align: top;'> "
<< author << "</TD></TR>\n";
+ (s) << "<TR><TD style='vertical-align: top;'><b> Category(s) </b></TD><TD style='vertical-align: top;'> : </TD><TD style='vertical-align: top;'> "
+ << category << "</TD></TR>\n";
+ (s) << "<TR><TD style='vertical-align: top;'><b> Include </b></TD><TD style='vertical-align: top;'> : </TD><TD style='vertical-align: top;'> "
+ << GetPackage()->GetName() << "</TD></TR>\n";
(s) << "</TABLE>\n";
//-------------
Program: bbtk
Module: $RCSfile: bbtkExecuter.cxx,v $ $
Language: C++
- Date: $Date: 2008/02/05 13:23:46 $
- Version: $Revision: 1.7 $
+ Date: $Date: 2008/02/06 09:27:52 $
+ Version: $Revision: 1.8 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
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("Kernel",9,"Executer::EndDefine(\""
Program: bbtk
Module: $RCSfile: bbtkExecuter.h,v $ $
Language: C++
- Date: $Date: 2008/02/05 12:16:55 $
- Version: $Revision: 1.6 $
+ Date: $Date: 2008/02/06 09:27:52 $
+ Version: $Revision: 1.7 $
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& pack,
const std::string &scriptfilename);
+ /// Sets the file name to use for the current definition
+ /// (Used to set it after the Define command)
+ void SetCurrentFileName (const std::string &name );
+
/// End the definition of a ComplexBlackBox
void EndDefine ();
Program: bbtk
Module: $RCSfile: bbtkInterpreter.cxx,v $ $
Language: C++
- Date: $Date: 2008/02/06 09:27:52 $
- Version: $Revision: 1.26 $
+ Date: $Date: 2008/02/06 09:32:25 $
+ Version: $Revision: 1.27 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
info.argmax = 2;
info.code = cInclude;
info.syntax = "include <filename> [source]";
- info.help = "Includes the file <filename>.\n Advanced (used to get the right 'Include' field in doc of packages appli) : If the keyword 'source' is provided then informs bbi that the included file is the source of the current box definition.";
+ info.help = "Includes the file <filename>.\n 'source' : If the keyword 'source' is provided then informs bbi that the included file is the source of the current box definition (Advanced; used to get the right 'Include' field in html doc of packages 'appli' scripts).";
mCommandDict[info.category] = info;
info.category = "quit";
Program: bbtk
Module: $RCSfile: bbtkInterpreter.h,v $ $
Language: C++
- Date: $Date: 2008/02/05 12:16:55 $
- Version: $Revision: 1.9 $
+ Date: $Date: 2008/02/06 09:27:52 $
+ 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
private:
- void LoadScript( std::string fullPathScriptName);
+ /// Opens the file fullPathScriptName
+ /// includeScriptName is the name as given to the include command
+ void LoadScript( std::string fullPathScriptName,
+ std::string includeScriptName);
private:
/// The command executer
bbtk::VirtualExec* mExecuter;
- /// Vector of opened files
+ /// Vector of open files
std::vector<std::ifstream*> mFile;
- /// Vector of names of open files
+ /// Vector of names of open files with full path (as open)
std::vector<std::string> mFileName;
+ /// Vector of names of open files as given to the include command
+ std::vector<std::string> mIncludeFileName;
+
/// Stores the current line number in each open file
std::vector<int> mLine;
Program: bbtk
Module: $RCSfile: bbtkVirtualExec.h,v $ $
Language: C++
- Date: $Date: 2008/02/05 12:16:56 $
- Version: $Revision: 1.6 $
+ Date: $Date: 2008/02/06 09:27:52 $
+ Version: $Revision: 1.7 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
virtual void Define (const std::string &name,
const std::string& pack,
const std::string &scriptfilename) = 0;
+
+ /// Sets the file name to use for the current definition
+ /// (Used to set it after the Define command)
+ virtual void SetCurrentFileName (const std::string &name ) = 0;
/// End the definition of a ComplexBlackBox
virtual void EndDefine () = 0;