16 #include <boost/shared_ptr.hpp>
26 class AbstractMessageRenderer;
71 typedef boost::shared_ptr<Rdata>
RdataPtr;
142 void operator=(
const Rdata& source);
152 virtual std::string
toText()
const = 0;
255 explicit Generic(
const std::string& rdata_string);
324 virtual std::string
toText()
const;
453 const std::string& rdata_string);
493 const Rdata& source);
The Name class encapsulates DNS names.
const unsigned int MAX_CHARSTRING_LEN
The maximum allowable length of character-string containing in RDATA as defined in RFC1035...
const size_t MAX_RDLENGTH
Possible maximum length of RDATA, which is the maximum unsigned 16 bit value.
InvalidRdataLength(const char *file, size_t line, const char *what)
Base class for all sorts of text parse errors.
virtual ~Generic()
The destructor.
virtual std::string toText() const
Convert an generic::Generic object to a string.
boost::shared_ptr< const Rdata > ConstRdataPtr
Generic & operator=(const Generic &source)
The assignment operator.
The Rdata class is an abstract base class that provides a set of common interfaces to manipulate conc...
RdataPtr createRdata(const RRType &rrtype, const RRClass &rrclass, const std::string &rdata_string)
Create RDATA of a given pair of RR type and class from a string.
The generic::Generic class represents generic "unknown" RDATA.
std::ostream & operator<<(std::ostream &os, const Generic &rdata)
Insert the name as a string into stream.
The RRClass class encapsulates DNS resource record classes.
virtual void toWire(isc::util::OutputBuffer &buffer) const =0
Render the Rdata in the wire format into a buffer.
Options
Options how the parsing should work.
The AbstractMessageRenderer class is an abstract base class that provides common interfaces for rende...
InvalidRdataText(const char *file, size_t line, const char *what)
A standard DNS module exception that is thrown if RDATA parser fails to recognize a given textual rep...
A standard DNS module exception that is thrown if RDATA parser encounters an invalid or inconsistent ...
virtual ~Rdata()
The destructor.
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
The OutputBuffer class is a buffer abstraction for manipulating mutable data.
Generic(const std::string &rdata_string)
Constructor from a string.
Defines the logger used by the top-level component of kea-dhcp-ddns.
virtual int compare(const Rdata &other) const
Compare two instances of generic::Generic objects.
int compareNames(const Name &n1, const Name &n2)
Gives relative ordering of two names in terms of DNSSEC RDATA ordering.
The RRType class encapsulates DNS resource record types.
Rdata()
The default constructor.
virtual int compare(const Rdata &other) const =0
Compare two instances of Rdata.
virtual void toWire(isc::util::OutputBuffer &buffer) const
Render the generic::Generic in the wire format into a buffer.
Tokenizer for parsing DNS master files.
Set of issue callbacks for a loader.
virtual std::string toText() const =0
Convert an Rdata to a string.
boost::shared_ptr< Rdata > RdataPtr
The RdataPtr type is a pointer-like type, pointing to an object of some concrete derived class of Rda...
virtual uint16_t getLength() const
Get the wire format length of an Rdata.