 |
Kea
1.5.0
|
Go to the documentation of this file.
24 #include <boost/optional.hpp>
42 class AbstractMessageRenderer;
104 explicit RRClass(uint16_t classcode) : classcode_(classcode) {}
135 explicit RRClass(
const std::string& class_str);
192 const std::string
toText()
const;
233 uint16_t
getCode()
const {
return (classcode_); }
254 {
return (classcode_ == other.classcode_); }
265 {
return (classcode_ != other.classcode_); }
285 {
return (classcode_ < other.classcode_); }
300 inline const RRClass&
static const RRClass & ANY()
bool operator==(const RRClass &other) const
Same as equals().
IncompleteRRClass(const char *file, size_t line, const char *what)
bool equals(const RRClass &other) const
Return true iff two RRClasses are equal.
static const RRClass & IN()
uint16_t getCode() const
Returns the RR class code as a 16-bit unsigned integer.
void toWire(AbstractMessageRenderer &renderer) const
Render the RRClass in the wire format.
InvalidRRClass(const char *file, size_t line, const char *what)
bool nequals(const RRClass &other) const
Return true iff two RRClasses are not equal.
static const RRClass & HS()
The AbstractMessageRenderer class is an abstract base class that provides common interfaces for rende...
Defines the logger used by the top-level component of kea-dhcp-ddns.
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
ostream & operator<<(std::ostream &os, const EDNS &edns)
Insert the EDNS as a string into stream.
static const RRClass & NONE()
A standard DNS module exception that is thrown if an RRClass object is being constructed from a incom...
The OutputBuffer class is a buffer abstraction for manipulating mutable data.
static RRClass * createFromText(const std::string &class_str)
A separate factory of RRClass from text.
Base class for all sorts of text parse errors.
static const RRClass & CH()
const std::string toText() const
Convert the RRClass to a string.
bool operator!=(const RRClass &other) const
Same as nequals().
RRClass(uint16_t classcode)
Constructor from an integer class code.
The RRClass class encapsulates DNS resource record classes.
A standard DNS module exception that is thrown if an RRClass object is being constructed from an unre...
bool operator<(const RRClass &other) const
Less-than comparison for RRClass against other.