1 /* $Id: ex_router_flexml.cpp,v 1.1 2005-10-26 14:12:00 marc Exp $
2 Copyright (c) 2005, Index Data.
12 #include "router_flexml.hpp"
14 int main(int argc, char **argv)
19 std::string xmlconf = "<?xml version=\"1.0\"?>\n"
20 "<yp2 xmlns=\"http://indexdata.dk/yp2/config/1\">\n"
21 "<start route=\"start\"/>\n"
23 "<filter id=\"front_default\" type=\"frontend-net\">\n"
26 "<filter id=\"log_cout\" type=\"log\">\n"
27 "<logfile>mylog.log</logfile>\n"
31 "<route id=\"start\">\n"
32 "<filter refid=\"front_default\"/>\n"
33 "<filter refid=\"log_cout\"/>\n"
38 yp2::RouterFleXML rflexml(xmlconf);
44 //std::cerr << "Unknown Exception" << std::endl;
57 * indent-tabs-mode: nil
58 * c-file-style: "stroustrup"
60 * vim: shiftwidth=4 tabstop=8 expandtab