13 #include <boost/shared_ptr.hpp>
27 class AbstractMessageRenderer;
129 name_(name), rrtype_(rrtype), rrclass_(rrclass)
166 std::string
toText(
bool newline =
false)
const;
237 return (rrclass_ < rhs.rrclass_ ||
238 (rrclass_ == rhs.rrclass_ &&
239 (rrtype_ < rhs.rrtype_ ||
240 (rrtype_ == rhs.rrtype_ && (name_ < rhs.name_)))));
249 return ((rrclass_ == rhs.rrclass_) && (rrtype_ == rhs.rrtype_) &&
250 (name_ == rhs.name_));
260 return (!
operator==(rhs));
284 std::ostream&
operator<<(std::ostream& os,
const Question& question);
The Name class encapsulates DNS names.
ostream & operator<<(std::ostream &os, const EDNS &edns)
Insert the EDNS as a string into stream.
The Question class encapsulates the common search key of DNS lookup, consisting of owner name...
const Name & getName() const
Returns the owner name of the Question.
Question(const Name &name, const RRClass &rrclass, const RRType &rrtype)
Constructor from fixed parameters of the Question.
bool operator==(const Question &rhs) const
Equality operator.
The RRClass class encapsulates DNS resource record classes.
bool operator!=(const Question &rhs) const
Inequality operator.
const RRType & getType() const
Returns the RR Class of the Question.
unsigned int toWire(AbstractMessageRenderer &renderer) const
Render the Question in the wire format with name compression.
The AbstractMessageRenderer class is an abstract base class that provides common interfaces for rende...
Question(isc::util::InputBuffer &buffer)
Constructor from wire-format data.
The OutputBuffer class is a buffer abstraction for manipulating mutable data.
const RRClass & getClass() const
Returns the RR Type of the Question.
Defines the logger used by the top-level component of kea-dhcp-ddns.
std::string toText(bool newline=false) const
Convert the Question to a string.
bool operator<(const Question &rhs) const
A "less than" operator is needed for this class so it can function as an index to std::map...
The RRType class encapsulates DNS resource record types.
boost::shared_ptr< Question > QuestionPtr
A pointer-like type pointing to an Question object.
boost::shared_ptr< const Question > ConstQuestionPtr
A pointer-like type pointing to an (immutable) Question object.