]> Creatis software - bbtk.git/blob - kernel/appli/bbRegenerateBoxesLists/bbRegenerateBoxesLists.cpp
*** empty log message ***
[bbtk.git] / kernel / appli / bbRegenerateBoxesLists / bbRegenerateBoxesLists.cpp
1
2 #include <bbtkInterpreter.h>
3 #include <bbtkConfigurationFile.h>
4
5 //==========================================================================
6 int main(int argc, char **argv)
7 {
8   if (argc>1)
9     {
10       bbtk::MessageManager::SetMessageLevel("max",0);
11     }
12
13   try
14     {
15       bbtk::Interpreter::Pointer I = bbtk::Interpreter::New();
16       I->SetCommandLine(true);
17       I->SetThrow(false);
18       
19       
20       std::string doc_path = bbtk::ConfigurationFile::GetInstance().Get_doc_path();
21       doc_path += bbtk::ConfigurationFile::GetInstance().Get_file_separator();
22       doc_path += "bbdoc";
23       doc_path += bbtk::ConfigurationFile::GetInstance().Get_file_separator();
24       
25       I->InterpretLine( "exec freeze");
26       I->InterpretLine( "include *");
27       I->GetExecuter()->GetFactory()->CreateHtmlIndex(bbtk::Factory::Initials,doc_path + "index-alpha.html");
28         I->GetExecuter()->GetFactory()->CreateHtmlIndex(bbtk::Factory::Packages,doc_path + "index-package.html");
29         I->GetExecuter()->GetFactory()->CreateHtmlIndex(bbtk::Factory::Categories,doc_path + "index-category.html");
30         I->GetExecuter()->GetFactory()->CreateHtmlIndex(bbtk::Factory::Adaptors,doc_path + "index-adaptors.html");
31         
32     }
33   catch (bbtk::Exception e)
34     {
35       std::cout << "* ERROR : "<<e.GetErrorMessage()<<std::endl;
36       return 1;
37     }
38   return 0;
39 }
40 //==========================================================================
41
42