13#include <boost/shared_ptr.hpp>
122 name_(name), rrtype_(rrtype), rrclass_(rrclass) {
182 std::string
toText(
bool newline =
false)
const;
236 return (rrclass_ < rhs.rrclass_ ||
237 (rrclass_ == rhs.rrclass_ &&
238 (rrtype_ < rhs.rrtype_ ||
239 (rrtype_ == rhs.rrtype_ && (name_ < rhs.name_)))));
248 return ((rrclass_ == rhs.rrclass_) && (rrtype_ == rhs.rrtype_) &&
249 (name_ == rhs.name_));
259 return (!
operator==(rhs));
283std::ostream&
operator<<(std::ostream& os,
const Question& question);
The AbstractMessageRenderer class is an abstract base class that provides common interfaces for rende...
The Name class encapsulates DNS names.
The Question class encapsulates the common search key of DNS lookup, consisting of owner name,...
std::string toText(bool newline=false) const
Convert the Question to a string.
Question(const Name &name, const RRClass &rrclass, const RRType &rrtype)
Constructor from fixed parameters of the Question.
uint32_t toWire(AbstractMessageRenderer &renderer) const
Render the Question in the wire format with name compression.
const Name & getName() const
Returns the owner name of the Question.
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.
Question(isc::util::InputBuffer &buff)
Constructor from wire-format data.
const RRType & getType() const
Returns the RR Class of the Question.
bool operator==(const Question &rhs) const
Equality operator.
bool operator!=(const Question &rhs) const
Inequality operator.
const RRClass & getClass() const
Returns the RR Type of the Question.
The RRClass class encapsulates DNS resource record classes.
The RRType class encapsulates DNS resource record types.
The OutputBuffer class is a buffer abstraction for manipulating mutable data.
boost::shared_ptr< Question > QuestionPtr
A pointer-like type pointing to an Question object.
ostream & operator<<(std::ostream &os, const EDNS &edns)
Insert the EDNS as a string into stream.
boost::shared_ptr< const Question > ConstQuestionPtr
A pointer-like type pointing to an (immutable) Question object.
Defines the logger used by the top-level component of kea-lfc.