28 RRType::RRType(
const std::string& type_str) {
30 if (!RRParamRegistry::getRegistry().textToTypeCode(type_str, typecode)) {
32 "Unrecognized RR type string: " + type_str);
45 RRType::toText()
const {
46 return (RRParamRegistry::getRegistry().codeToTypeText(typecode_));
A standard DNS module exception that is thrown if an RRType object is being constructed from a incomp...
ostream & operator<<(ostream &os, const RRType &rrtype)
Insert the RRType as a string into stream.
const std::string toText() const
Convert the RRType to a string.
void writeUint16(uint16_t data)
Write an unsigned 16-bit integer in host byte order into the internal buffer in network byte order...
#define isc_throw(type, stream)
A shortcut macro to insert known values into exception arguments.
The AbstractMessageRenderer class is an abstract base class that provides common interfaces for rende...
The OutputBuffer class is a buffer abstraction for manipulating mutable data.
Defines the logger used by the top-level component of kea-dhcp-ddns.
The RRType class encapsulates DNS resource record types.
void writeUint16(uint16_t data)
Write an unsigned 16-bit integer in host byte order into the buffer in network byte order...
A standard DNS module exception that is thrown if an RRType object is being constructed from an unrec...