-/* $Id: test_filter_virt_db.cpp,v 1.10 2006-01-11 11:51:50 adam Exp $
- Copyright (c) 2005, Index Data.
+/* $Id: test_filter_virt_db.cpp,v 1.12 2006-03-16 10:40:59 adam Exp $
+ Copyright (c) 2005-2006, Index Data.
router.append(vdb);
// Create package with Z39.50 init request in it
// Since there is not vhost given, the virt will make its
// own init response (regardless of backend)
router.append(vdb);
// Create package with Z39.50 init request in it
// Since there is not vhost given, the virt will make its
// own init response (regardless of backend)
const std::string &query, const char *db,
const char *setname)
{
// Create package with Z39.50 search request in it
const std::string &query, const char *db,
const char *setname)
{
// Create package with Z39.50 search request in it
Z_APDU *apdu = zget_APDU(odr, Z_APDU_presentRequest);
apdu->u.presentRequest->resultSetId = odr_strdup(odr, setname);
Z_APDU *apdu = zget_APDU(odr, Z_APDU_presentRequest);
apdu->u.presentRequest->resultSetId = odr_strdup(odr, setname);
- vdb.add_map_db2vhost("Default", "localhost:210", "");
- yp2::filter::Log filter_log2("BACK");
+ vdb.add_map_db2target("Default", "localhost:210", "");
+ mp::filter::Log filter_log2("BACK");
search(pack, router, "computer", "bad_database", "default");
}
{
// search for database for which there a map
search(pack, router, "computer", "bad_database", "default");
}
{
// search for database for which there a map
search(pack, router, "other", "Default", "default");
}
{
// present from last search
search(pack, router, "other", "Default", "default");
}
{
// present from last search
present(pack, router, 1, 2, "default");
}
}
present(pack, router, 1, 2, "default");
}
}