7 #ifndef MASTER_LOADER_H
8 #define MASTER_LOADER_H
12 #include <boost/noncopyable.hpp>
74 const Name& zone_origin,
88 const Name& zone_origin,
176 class MasterLoaderImpl;
177 MasterLoaderImpl* impl_;
183 #endif // MASTER_LOADER_H
The Name class encapsulates DNS names.
A class able to load DNS master files.
MasterLoaderError(const char *file, size_t line, const char *what)
bool loadedSuccessfully() const
Was the loading successful?
size_t getSize() const
Return the total size of the zone files and streams.
The RRClass class encapsulates DNS resource record classes.
Options
Options how the parsing should work.
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
This is a base class for exceptions thrown from the DNS library module.
Defines the logger used by the top-level component of kea-dhcp-ddns.
size_t getPosition() const
Return the position of the loader in zone.
Error while loading by MasterLoader without specifying the MANY_ERRORS option.
bool loadIncremental(size_t count_limit)
Load some RRs.
void load()
Load everything.
MasterLoader(const char *master_file, const Name &zone_origin, const RRClass &zone_class, const MasterLoaderCallbacks &callbacks, const AddRRCallback &add_callback, Options options=DEFAULT)
Constructor.
Lenient mode (see documentation of MasterLoader constructor).
std::function< void(const Name &name, const RRClass &rrclass, const RRType &rrtype, const RRTTL &rrttl, const rdata::RdataPtr &rdata)> AddRRCallback
Type of callback to add a RR.
Set of issue callbacks for a loader.
~MasterLoader()
Destructor.