void disableWrapper() {
disable();
}
-
-protected:
- // TODO: RRsetCollectionBase::Iter is not implemented and the
- // following two methods just throw.
-
- virtual RRsetCollectionBase::IterPtr getBeginning() {
- isc_throw(NotImplemented, "This method is not implemented.");
- }
-
- virtual RRsetCollectionBase::IterPtr getEnd() {
- isc_throw(NotImplemented, "This method is not implemented.");
- }
};
//
/// \brief datasrc derivation of \c isc::dns::RRsetCollectionBase.
///
-/// This is an abstract class that adds datasrc related detail to
-/// \c isc::dns::RRsetCollectionBase. Derived classes need to complete
-/// the implementation (add iterator support, etc.) before using it.
+/// This is a default datasrc implementation of
+/// \c isc::dns::RRsetCollectionBase that adds datasrc related detail.
class RRsetCollectionBase : public isc::dns::RRsetCollectionBase {
public:
/// \brief Constructor.
/// \throw isc::dns::RRsetCollectionError if using the iterator
/// results in some underlying datasrc error, or if \c disable() was
/// called.
- virtual IterPtr getBeginning() = 0;
+ /// \throw isc::NotImplemented as it's not implemented currently.
+ virtual IterPtr getBeginning() {
+ isc_throw(NotImplemented, "This method is not implemented.");
+ }
/// \brief See \c isc::dns::RRsetCollectionBase::getEnd() for
/// documentation.
/// \throw isc::dns::RRsetCollectionError if using the iterator
/// results in some underlying datasrc error, or if \c disable() was
/// called.
- virtual IterPtr getEnd() = 0;
+ /// \throw isc::NotImplemented as it's not implemented currently.
+ virtual IterPtr getEnd() {
+ isc_throw(NotImplemented, "This method is not implemented.");
+ }
private:
ZoneUpdater& updater_;