24 #include <boost/optional.hpp> 42 class AbstractMessageRenderer;
104 explicit RRClass(uint16_t classcode) : classcode_(classcode) {}
135 explicit RRClass(
const std::string& class_str);
180 static RRClass* createFromText(
const std::string& class_str);
192 const std::string toText()
const;
233 uint16_t getCode()
const {
return (classcode_); }
245 bool equals(
const RRClass& other)
const 254 {
return (classcode_ == other.classcode_); }
265 {
return (classcode_ != other.classcode_); }
285 {
return (classcode_ < other.classcode_); }
Base class for all sorts of text parse errors.
A standard DNS module exception that is thrown if an RRClass object is being constructed from a incom...
std::ostream & operator<<(std::ostream &os, const CSVRow &row)
Overrides standard output stream operator for CSVRow object.
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...
The AbstractMessageRenderer class is an abstract base class that provides common interfaces for rende...
IncompleteRRClass(const char *file, size_t line, const char *what)
bool operator==(const RRClass &other) const
Same as equals().
The OutputBuffer class is a buffer abstraction for manipulating mutable data.
bool nequals(const RRClass &other) const
Return true iff two RRClasses are not equal.
Defines the logger used by the top-level component of kea-lfc.
InvalidRRClass(const char *file, size_t line, const char *what)
bool operator<(const RRClass &other) const
Less-than comparison for RRClass against other.
bool operator!=(const RRClass &other) const
Same as nequals().