X-Git-Url: https://harishankar.org/repos/?p=biaweb2.git;a=blobdiff_plain;f=biaweb.cpp;fp=biaweb.cpp;h=8e87ab8abdaba2cc5304103eb8b4b02c12936b54;hp=d0c284eff4ac8cbcac6c0048d2b34fc199c3461b;hb=c3f6c1be3a72da00b32eef61b9a4a381a76880eb;hpb=1d6e80c91ca5a6c4551d89e7a1979490c2505745 diff --git a/biaweb.cpp b/biaweb.cpp index d0c284e..8e87ab8 100644 --- a/biaweb.cpp +++ b/biaweb.cpp @@ -1,23 +1,7 @@ -#include -#include -#include -#include "biawebdocumenttree.hpp" -using namespace biaweb; - -int main (int argc, char *argv[]) { - // Compute the speed of generating the document tree and output HTML from sources - std::chrono::steady_clock::time_point t1 (std::chrono::steady_clock::now()); - - // An empty document tree - std::unique_ptr tree (new DocumentTree ("")); - tree.get()->document_tree_builder ("Test/Reviews"); - std::cout << VISUALIZE_TREE << std::endl; - tree.get()->visualize_tree (); - Template tpl ("templates"); - tree.get()->create_tree_html (&tpl, "Test/Out"); - std::chrono::steady_clock::time_point t2 (std::chrono::steady_clock::now()); - std::chrono::duration dur (t2 - t1); - std::cout << GENERATED_IN << dur.count () << std::endl; - - return 0; -} +#include "biawebmain.hpp" +#include +using namespace biaweb; +int main (int argc, char **argv) { + Main prog (argc, argv); + return prog.run (); +} \ No newline at end of file