]> Creatis software - bbtk.git/blob - kernel/appli/bbRegenerateBoxesLists/bbRegenerateBoxesLists.cpp
6104957203182abfeeb8dbbae532b93842efc9e9
[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
9   try
10     {
11       bbtk::Interpreter::Pointer I = bbtk::Interpreter::New();
12       I->SetCommandLine(true);
13       I->SetThrow(false);
14       
15       
16       std::string doc_path = bbtk::ConfigurationFile::GetInstance().Get_doc_path();
17       doc_path += bbtk::ConfigurationFile::GetInstance().Get_file_separator();
18       doc_path += "bbdoc";
19       doc_path += bbtk::ConfigurationFile::GetInstance().Get_file_separator();
20       
21       I->InterpretLine( "exec freeze");
22       I->InterpretLine( "include *");
23       I->GetExecuter()->GetFactory()->CreateHtmlIndex(bbtk::Factory::Initials,doc_path + "index-alpha.html");
24         I->GetExecuter()->GetFactory()->CreateHtmlIndex(bbtk::Factory::Packages,doc_path + "index-package.html");
25         I->GetExecuter()->GetFactory()->CreateHtmlIndex(bbtk::Factory::Categories,doc_path + "index-category.html");
26         I->GetExecuter()->GetFactory()->CreateHtmlIndex(bbtk::Factory::Adaptors,doc_path + "index-adaptors.html");
27         
28     }
29   catch (bbtk::Exception e)
30     {
31       std::cout << "* ERROR : "<<e.GetErrorMessage()<<std::endl;
32       return 1;
33     }
34   return 0;
35 }
36 //==========================================================================
37
38