|
@@ -161,6 +161,7 @@ public:
|
|
///
|
|
///
|
|
/// \return A string representation of \c Rdata.
|
|
/// \return A string representation of \c Rdata.
|
|
virtual std::string toText() const = 0;
|
|
virtual std::string toText() const = 0;
|
|
|
|
+
|
|
/// \brief Render the \c Rdata in the wire format into a buffer.
|
|
/// \brief Render the \c Rdata in the wire format into a buffer.
|
|
///
|
|
///
|
|
/// This is a pure virtual method without the definition; the actual
|
|
/// This is a pure virtual method without the definition; the actual
|
|
@@ -169,6 +170,7 @@ public:
|
|
///
|
|
///
|
|
/// \param buffer An output buffer to store the wire data.
|
|
/// \param buffer An output buffer to store the wire data.
|
|
virtual void toWire(OutputBuffer& buffer) const = 0;
|
|
virtual void toWire(OutputBuffer& buffer) const = 0;
|
|
|
|
+
|
|
/// \brief Render the \c Rdata in the wire format into a
|
|
/// \brief Render the \c Rdata in the wire format into a
|
|
/// \c MessageRenderer object.
|
|
/// \c MessageRenderer object.
|
|
///
|
|
///
|
|
@@ -251,6 +253,7 @@ public:
|
|
/// \param rdata_string A string of textual representation of generic
|
|
/// \param rdata_string A string of textual representation of generic
|
|
/// RDATA.
|
|
/// RDATA.
|
|
explicit Generic(const std::string& rdata_string);
|
|
explicit Generic(const std::string& rdata_string);
|
|
|
|
+
|
|
///
|
|
///
|
|
/// \brief Constructor from wire-format data.
|
|
/// \brief Constructor from wire-format data.
|
|
///
|
|
///
|
|
@@ -273,6 +276,7 @@ public:
|
|
/// \c Rdata to parse.
|
|
/// \c Rdata to parse.
|
|
/// \param rdata_len The length in buffer of the \c Rdata. In bytes.
|
|
/// \param rdata_len The length in buffer of the \c Rdata. In bytes.
|
|
Generic(InputBuffer& buffer, size_t rdata_len);
|
|
Generic(InputBuffer& buffer, size_t rdata_len);
|
|
|
|
+
|
|
///
|
|
///
|
|
/// \brief The destructor.
|
|
/// \brief The destructor.
|
|
virtual ~Generic();
|
|
virtual ~Generic();
|
|
@@ -284,6 +288,7 @@ public:
|
|
///
|
|
///
|
|
/// \param source A reference to a \c generic::Generic object to copy from.
|
|
/// \param source A reference to a \c generic::Generic object to copy from.
|
|
Generic(const Generic& source);
|
|
Generic(const Generic& source);
|
|
|
|
+
|
|
///
|
|
///
|
|
/// \brief The assignment operator.
|
|
/// \brief The assignment operator.
|
|
///
|
|
///
|
|
@@ -293,6 +298,7 @@ public:
|
|
/// \param source A reference to a \c generic::Generic object to copy from.
|
|
/// \param source A reference to a \c generic::Generic object to copy from.
|
|
Generic& operator=(const Generic& source);
|
|
Generic& operator=(const Generic& source);
|
|
//@}
|
|
//@}
|
|
|
|
+
|
|
///
|
|
///
|
|
/// \name Converter methods
|
|
/// \name Converter methods
|
|
///
|
|
///
|
|
@@ -307,6 +313,7 @@ public:
|
|
///
|
|
///
|
|
/// \return A string representation of \c generic::Generic.
|
|
/// \return A string representation of \c generic::Generic.
|
|
virtual std::string toText() const;
|
|
virtual std::string toText() const;
|
|
|
|
+
|
|
///
|
|
///
|
|
/// \brief Render the \c generic::Generic in the wire format into a buffer.
|
|
/// \brief Render the \c generic::Generic in the wire format into a buffer.
|
|
///
|
|
///
|
|
@@ -317,6 +324,7 @@ public:
|
|
///
|
|
///
|
|
/// \param buffer An output buffer to store the wire data.
|
|
/// \param buffer An output buffer to store the wire data.
|
|
virtual void toWire(OutputBuffer& buffer) const;
|
|
virtual void toWire(OutputBuffer& buffer) const;
|
|
|
|
+
|
|
/// \brief Render the \c generic::Generic in the wire format into a
|
|
/// \brief Render the \c generic::Generic in the wire format into a
|
|
/// \c MessageRenderer object.
|
|
/// \c MessageRenderer object.
|
|
///
|
|
///
|
|
@@ -329,6 +337,7 @@ public:
|
|
/// output buffer in which the \c Generic object is to be stored.
|
|
/// output buffer in which the \c Generic object is to be stored.
|
|
virtual void toWire(MessageRenderer& renderer) const;
|
|
virtual void toWire(MessageRenderer& renderer) const;
|
|
//@}
|
|
//@}
|
|
|
|
+
|
|
///
|
|
///
|
|
/// \name Comparison method
|
|
/// \name Comparison method
|
|
///
|
|
///
|
|
@@ -421,6 +430,7 @@ std::ostream& operator<<(std::ostream& os, const Generic& rdata);
|
|
/// object.
|
|
/// object.
|
|
RdataPtr createRdata(const RRType& rrtype, const RRClass& rrclass,
|
|
RdataPtr createRdata(const RRType& rrtype, const RRClass& rrclass,
|
|
const std::string& rdata_string);
|
|
const std::string& rdata_string);
|
|
|
|
+
|
|
/// \brief Create RDATA of a given pair of RR type and class from
|
|
/// \brief Create RDATA of a given pair of RR type and class from
|
|
/// wire-format data.
|
|
/// wire-format data.
|
|
///
|
|
///
|
|
@@ -444,6 +454,7 @@ RdataPtr createRdata(const RRType& rrtype, const RRClass& rrclass,
|
|
/// object.
|
|
/// object.
|
|
RdataPtr createRdata(const RRType& rrtype, const RRClass& rrclass,
|
|
RdataPtr createRdata(const RRType& rrtype, const RRClass& rrclass,
|
|
InputBuffer& buffer, size_t len);
|
|
InputBuffer& buffer, size_t len);
|
|
|
|
+
|
|
/// \brief Create RDATA of a given pair of RR type and class, copying
|
|
/// \brief Create RDATA of a given pair of RR type and class, copying
|
|
/// of another RDATA of same kind.
|
|
/// of another RDATA of same kind.
|
|
///
|
|
///
|