#include <cc/data.h>
-#include <boost/bind.hpp>
-#include <boost/scoped_ptr.hpp>
-
#include <string>
namespace isc {
"{\"cache-enable\": true,"
" \"params\": {\"" + zname.toText() + "\": \"" + zone_file +
"\"}}"), true);
- boost::scoped_ptr<memory::ZoneWriter> writer(
- new memory::ZoneWriter(zt_sgmt,
- cache_conf.getLoadAction(zclass, zname),
- zname, zclass));
- writer->load();
- writer->install();
- writer->cleanup();
+ memory::ZoneWriter writer(zt_sgmt, cache_conf.getLoadAction(zclass, zname),
+ zname, zclass);
+ writer.load();
+ writer.install();
+ writer.cleanup();
}
namespace {
loadZoneIntoTable(ZoneTableSegment& zt_sgmt, const dns::Name& zname,
const dns::RRClass& zclass, ZoneIterator& iterator)
{
- boost::scoped_ptr<memory::ZoneWriter> writer(
- new memory::ZoneWriter(zt_sgmt,
- IteratorLoader(zclass, zname, iterator),
- zname, zclass));
- writer->load();
- writer->install();
- writer->cleanup();
+ memory::ZoneWriter writer(zt_sgmt, IteratorLoader(zclass, zname, iterator),
+ zname, zclass);
+ writer.load();
+ writer.install();
+ writer.cleanup();
}
} // namespace test
string(TEST_ZONE_FILE) + "\"}}"), true);
shared_ptr<ZoneTableSegment> ztable_segment(
ZoneTableSegment::create(zclass, cache_conf.getSegmentType()));
- scoped_ptr<memory::ZoneWriter> writer(
- new memory::ZoneWriter(*ztable_segment,
- cache_conf.getLoadAction(zclass, zname),
- zname, zclass));
- writer->load();
- writer->install();
- writer->cleanup();
+ memory::ZoneWriter writer(*ztable_segment,
+ cache_conf.getLoadAction(zclass, zname),
+ zname, zclass);
+ writer.load();
+ writer.install();
+ writer.cleanup();
shared_ptr<InMemoryClient> client(new InMemoryClient(ztable_segment,
zclass));