X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Fex_router_flexml.cpp;h=c2e58f62adf6dfbaba49298bd5eb73a081603a43;hb=48f4e384860829966eacf4881fbf1ccbed38be6a;hp=a1c1a0d9515732c65fa22acd15a92b8276b72b9c;hpb=c859210e9c315c0f15c93fc6f65477a6c3e65d14;p=metaproxy-moved-to-github.git diff --git a/src/ex_router_flexml.cpp b/src/ex_router_flexml.cpp index a1c1a0d..c2e58f6 100644 --- a/src/ex_router_flexml.cpp +++ b/src/ex_router_flexml.cpp @@ -1,4 +1,4 @@ -/* $Id: ex_router_flexml.cpp,v 1.1 2005-10-26 14:12:00 marc Exp $ +/* $Id: ex_router_flexml.cpp,v 1.4 2006-01-04 14:15:45 adam Exp $ Copyright (c) 2005, Index Data. %LICENSE% @@ -13,39 +13,40 @@ int main(int argc, char **argv) { - //try - //{ - - std::string xmlconf = "\n" - "\n" - "\n" - "\n" - "\n" + try + { + + std::string xmlconf = "\n" + "\n" + "\n" + "\n" + "\n" "210\n" - "\n" - "\n" - "mylog.log\n" - "\n" - "\n" + "\n" + "\n" + "mylog.log\n" + "\n" + "\n" "\n" - "\n" - "\n" - "\n" - "\n" + "\n" + "\n" + "\n" + "\n" "\n" - "\n"; - - yp2::RouterFleXML rflexml(xmlconf); - - - - // } - //catch ( ... ) { - //std::cerr << "Unknown Exception" << std::endl; - //throw(); - //std::exit(1); - //} - std::exit(0); + "\n"; + + yp2::FilterFactory factory; + yp2::RouterFleXML rflexml(xmlconf, factory); + + + + } + catch ( ... ) { + std::cerr << "Unknown Exception" << std::endl; + throw; + std::exit(1); + } + std::exit(0); }