X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fappli%2FbbRegeneratePackageDoc%2FbbRegeneratePackageDoc.cpp;h=6f60f54f67440e40b8fbadf4b70dac2286eae2d0;hb=9f98df479679f8d3f4d63986f1e8a9921853e2b9;hp=9faa7d56b429a860da732a44964672510b24ddca;hpb=b9463ff95b371ee89376c35d12172ad082ab14d0;p=bbtk.git diff --git a/kernel/appli/bbRegeneratePackageDoc/bbRegeneratePackageDoc.cpp b/kernel/appli/bbRegeneratePackageDoc/bbRegeneratePackageDoc.cpp index 9faa7d5..6f60f54 100644 --- a/kernel/appli/bbRegeneratePackageDoc/bbRegeneratePackageDoc.cpp +++ b/kernel/appli/bbRegeneratePackageDoc/bbRegeneratePackageDoc.cpp @@ -7,6 +7,7 @@ //========================================================================== void RegenerateDoc ( bbtk::Package::Pointer p, std::string& doc_path ) { + std::string pack_name(p->GetName()); std::string pack_path = doc_path + pack_name; // Creating directory @@ -24,7 +25,11 @@ void RegenerateDoc ( bbtk::Package::Pointer p, std::string& doc_path ) p->SetDocURL(pack_index); p->SetDocRelativeURL("index.html"); - p->CreateHtmlPage(pack_index,"bbtk",pack_name,"","",0,0,false); //true); + + + p->CreateHtmlPage(pack_index,"bbtk",pack_name,"","",0,0,true); //true); + + } @@ -62,32 +67,37 @@ int main(int argc, char **argv) Usage(); return 0; } - + try { - std::string doc_path = bbtk::ConfigurationFile::GetInstance().Get_doc_path(); + std::string doc_path = bbtk::ConfigurationFile::GetInstance().Get_doc_path(); doc_path += bbtk::ConfigurationFile::GetInstance().Get_file_separator(); doc_path += "bbdoc"; doc_path += bbtk::ConfigurationFile::GetInstance().Get_file_separator(); - bbtk::Interpreter::Pointer I = bbtk::Interpreter::New(); I->SetCommandLine(true); I->SetThrow(false); - I->InterpretLine( "exec freeze"); +//std::cout<<"JCP bbRegeneratePackageDoc.cpp I->InterpretLine( exec freeze_no_error);"<InterpretLine( "exec freeze_no_error"); if (pack != "-a") { - I->InterpretLine( "include "+pack); - I->InterpretLine( "include "+pack+"-appli"); - RegenerateDoc(I->GetExecuter()->GetFactory()->GetPackage(pack),doc_path); + + I->InterpretLine( "include "+pack); + I->InterpretLine( "include "+pack+"-appli"); + bbtk::Package::Pointer p = I->GetExecuter()->GetFactory()->GetPackage(pack); +//std::cout<<"JCP bbRegeneratePackageDoc.cpp RegenerateDoc(I->GetExecuter()->GetFactory()->GetPackage(pack),doc_path);"<GetExecuter()->GetFactory()->GetPackage(pack),doc_path); } else { - I->InterpretLine( "include *"); - bbtk::Factory::PackageMapType::const_iterator i; +//std::cout<<"JCP bbRegeneratePackageDoc.cpp I->InterpretLine( include );"<InterpretLine( "include *"); + bbtk::Factory::PackageMapType::const_iterator i; for (i = I->GetExecuter()->GetFactory()->GetPackageMap().begin(); i != I->GetExecuter()->GetFactory()->GetPackageMap().end(); ++i) { +//std::cout<<" if (i->second->GetName()==user) continue;"<second->GetName()=="user") continue; RegenerateDoc(i->second,doc_path); } @@ -98,7 +108,7 @@ int main(int argc, char **argv) std::cout << "* ERROR : "<