]> Creatis software - bbtk.git/blob - kernel/appli/bbRegenerateBoxesLists/bbRegenerateBoxesLists.cpp
5f6612456e7aafcb1c52520b155a7faa39667068
[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         bbtk::Interpreter::Pointer I = bbtk::Interpreter::New();
10     I->SetCommandLine(true);
11     I->SetThrow(false);
12     
13
14         std::string doc_path = bbtk::ConfigurationFile::GetInstance().Get_doc_path();
15         doc_path += bbtk::ConfigurationFile::GetInstance().Get_file_separator();
16         doc_path += "bbdoc";
17         doc_path += bbtk::ConfigurationFile::GetInstance().Get_file_separator();
18
19     I->InterpretLine( "exec freeze");
20     I->InterpretLine( "include *");
21         I->GetExecuter()->GetFactory()->CreateHtmlIndex(bbtk::Factory::Initials,doc_path + "index-alpha.html");
22         I->GetExecuter()->GetFactory()->CreateHtmlIndex(bbtk::Factory::Packages,doc_path + "index-package.html");
23         I->GetExecuter()->GetFactory()->CreateHtmlIndex(bbtk::Factory::Categories,doc_path + "index-category.html");
24         I->GetExecuter()->GetFactory()->CreateHtmlIndex(bbtk::Factory::Adaptors,doc_path + "index-adaptors.html");
25
26         return 0;
27 }
28 //==========================================================================
29
30