X-Git-Url: https://harishankar.org/repos/?p=biaweb2.git;a=blobdiff_plain;f=biaweb.cpp;h=8e87ab8abdaba2cc5304103eb8b4b02c12936b54;hp=f720fe0ec5cee9b929157fe4cb757093f7a0ae54;hb=HEAD;hpb=802d0b0599093a6c5b30f946cd45c9ed7ebd4833 diff --git a/biaweb.cpp b/biaweb.cpp index f720fe0..8e87ab8 100644 --- a/biaweb.cpp +++ b/biaweb.cpp @@ -1,21 +1,7 @@ -#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"); - 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