virtual ZoneFinder& getFinder() { return (*finder_); }
- virtual isc::dns::RRsetCollectionBase& getRRsetCollection() {
+ virtual isc::datasrc::RRsetCollectionBase& getRRsetCollection() {
if (!rrset_collection_) {
// This is only assigned the first time and remains for the
// lifetime of the DatabaseUpdater.
namespace isc {
namespace datasrc {
+/// \brief A forward declaration
+class ZoneUpdater;
+
/// \brief datasrc derivation of \c isc::dns::RRsetCollectionBase.
///
/// This is an abstract class that adds datasrc related detail to
isc::dns::RRClass rrclass_;
};
+/// \brief A pointer-like type pointing to an
+/// \c isc::datasrc::RRsetCollectionBase object.
+///
+/// This type is used to handle RRsetCollections in a polymorphic manner
+/// in libdatasrc.
+typedef boost::shared_ptr<isc::datasrc::RRsetCollectionBase> RRsetCollectionPtr;
+
} // end of namespace datasrc
} // end of namespace isc
{}
ZoneUpdaterPtr updater;
- RRsetCollectionBase& collection;
+ isc::datasrc::RRsetCollectionBase& collection;
};
TYPED_TEST(RRsetCollectionTest, find) {
virtual ZoneFinder& getFinder() {
isc_throw(isc::NotImplemented, "Not to be called in this test");
}
- virtual isc::dns::RRsetCollectionBase& getRRsetCollection() {
+ virtual isc::datasrc::RRsetCollectionBase& getRRsetCollection() {
isc_throw(isc::NotImplemented, "Not to be called in this test");
}
virtual void deleteRRset(const isc::dns::AbstractRRset&) {
virtual ZoneFinder& getFinder() {
return (finder_);
}
- virtual isc::dns::RRsetCollectionBase& getRRsetCollection() {
+ virtual isc::datasrc::RRsetCollectionBase& getRRsetCollection() {
isc_throw(isc::NotImplemented, "Method not used in tests");
}
virtual void addRRset(const isc::dns::AbstractRRset& rrset) {
#include <dns/name.h>
#include <dns/rrset.h>
#include <dns/rrtype.h>
-#include <dns/rrset_collection_base.h>
#include <datasrc/exceptions.h>
#include <datasrc/result.h>
+#include <datasrc/rrset_collection_base.h>
#include <utility>
#include <vector>
/// \c ZoneFinder::Context object.
typedef boost::shared_ptr<ZoneFinder::Context> ConstZoneFinderContextPtr;
+/// \brief A forward declaration
+class RRsetCollectionBase;
+
/// The base class to make updates to a single zone.
///
/// On construction, each derived class object will start a "transaction"
/// Return an RRsetCollection for the updater.
///
/// This method returns an \c RRsetCollection for the updater,
- /// implementing the \c isc::dns::RRsetCollectionBase
+ /// implementing the \c isc::datasrc::RRsetCollectionBase
/// interface. Typically, the returned \c RRsetCollection is a
/// singleton for its \c ZoneUpdater. The returned RRsetCollection
/// object must not be used after its corresponding \c ZoneUpdater
/// of the \c Zonefinder returned by \c getFinder() with regards to
/// adding and deleting RRsets via \c addRRset() and \c
/// deleteRRset().
- virtual isc::dns::RRsetCollectionBase& getRRsetCollection() = 0;
+ virtual isc::datasrc::RRsetCollectionBase& getRRsetCollection() = 0;
/// Add an RRset to a zone via the updater
///
}
};
-/// \brief A pointer-like type pointing to an \c RRsetCollection object.
-///
-/// This type is used to handle RRsetCollections in a polymorphic manner
-/// in the BIND 10 codebase.
-typedef boost::shared_ptr<RRsetCollectionBase> RRsetCollectionPtr;
-
} // end of namespace dns
} // end of namespace isc