Program: bbtk
Module: $RCSfile: bbtkPackage.cxx,v $
Language: C++
- Date: $Date: 2008/02/05 13:23:46 $
- Version: $Revision: 1.5 $
+ 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
mVersion(version),
mBBTKVersion(BBTKVersion)
{
- std::string default_doc_dir = ConfigurationFile::GetInstance().Get_default_doc_tmp();
+ 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 url = default_doc_dir;
if (c != '/' && c !='\\') url = url + "/";
- url = url + "doc_tmp/" + name + "/index.html";
+ url = url + "temp_dir/" + name + "/index.html";
SetDocURL(url);
SetDocRelativeURL("Relative url not set");
std::string name = i->second->GetTypeName();
Utilities::html_format(name);
std::string descr = i->second->GetDescription();
+ Utilities::html_format(descr);
s << "<TR>";
s << "<TD style='vertical-align: top;'>";
- s << "<li><a name=\"toc_"<<name
+ s << " <a name=\"toc_"<<name
<<"\" href=\"#"<<name<<"\">"
<<name<<"</a>";
s << "</TD> ";
s << "</TABLE>\n";
- s << "</li></ul>\n";
+ s << "</ul>\n";
s << "</div>\n";
//-------------------
s << "<TR>";
s << "<TD style='vertical-align: top;'>";
- s << "<li><a name=\"toc_"<<name
+ s << " <a name=\"toc_"<<name
<<"\" href=\"#"<<name<<"\">"
<<name<<"</a>";
s << "</TD> ";
}
s << "</TABLE>\n";
- s << "</li></ul>\n";
+ s << "</ul>\n";
s << "</div>\n";
}
// 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);
ptm = gmtime ( &rawtime );
s << "<p><hr>\n";
- s << "Automatically generated by <b>"<<caller<<"</b> from <b>"
- <<source<<"</b> on "
+ s << "Automatically generated by <b>"<<caller<<"</b> "//from <b>"
+ // <<source<<"</b>
+ <<"on "
<< ptm->tm_mday << "/" << ptm->tm_mon << "/" << ptm->tm_year+1900
<< " - " << ptm->tm_hour << ":" << ptm->tm_min << " GMT\n";
s << "</body></html>\n";