13#include <boost/shared_ptr.hpp>
27class AbstractMessageRenderer;
129 name_(name), rrtype_(rrtype), rrclass_(rrclass)
183 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));
284std::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.
Question(isc::util::InputBuffer &buffer)
Constructor from wire-format data.
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.
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.
unsigned int toWire(AbstractMessageRenderer &renderer) const
Render the Question in the wire format with name compression.
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.