X-Git-Url: http://lists.indexdata.com/cgi-bin?a=blobdiff_plain;f=src%2Fex_router_flexml.cpp;h=6fdb856c97d21bd3cc2ea0e10777c1a27c52c173;hb=14d0e634d5061208301502d813d488d1e82f190b;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..6fdb856 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.5 2006-01-04 14:30:51 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::FactoryFilter factory; + yp2::RouterFleXML rflexml(xmlconf, factory); + + + + } + catch ( ... ) { + std::cerr << "Unknown Exception" << std::endl; + throw; + std::exit(1); + } + std::exit(0); }