NAPTR class represents the NAPTR rdata defined in RFC2915, RFC2168 and RFC3403
More...
#include <rdataclass.h>
NAPTR class represents the NAPTR rdata defined in RFC2915, RFC2168 and RFC3403
This class implements the basic interfaces inherited from the rdata::Rdata class, and provides accessors specific to the NAPTR rdata.
Definition at line 1118 of file rdataclass.h.
◆ NAPTR() [1/4]
| isc::dns::rdata::generic::NAPTR::NAPTR |
( |
const std::string & |
type_str | ) |
|
|
explicit |
◆ NAPTR() [2/4]
◆ NAPTR() [3/4]
| isc::dns::rdata::generic::NAPTR::NAPTR |
( |
const NAPTR & |
other | ) |
|
◆ NAPTR() [4/4]
◆ ~NAPTR()
| isc::dns::rdata::generic::NAPTR::~NAPTR |
( |
| ) |
|
◆ compare()
| virtual int isc::dns::rdata::generic::NAPTR::compare |
( |
const Rdata & |
other | ) |
const |
|
virtual |
Compare two instances of Rdata.
This method compares this and the other Rdata objects in terms of the DNSSEC sorting order as defined in RFC4034, and returns the result as an integer.
This is a pure virtual method without the definition; the actual comparison logic is specific to each derived concrete class and should be explicitly defined in the derived class.
Specific implementations of this method must confirm that this and the other are objects of the same concrete derived class of Rdata. This is normally done by dynamic_cast in the implementation. It also means if the assumption isn't met an exception of class std::bad_cast will be thrown.
Here is an implementation choice: instead of relying on dynamic_cast, we could first convert the data into wire-format and compare the pair as opaque data. This would be more polymorphic, but might involve significant overhead, especially for a large size of RDATA.
- Parameters
-
| other | the right-hand operand to compare against. |
- Returns
- < 0 if
this would be sorted before other.
-
0 if
this is identical to other in terms of sorting order.
-
> 0 if
this would be sorted after other.
Implements isc::dns::rdata::Rdata.
◆ getFlags()
| const std::string isc::dns::rdata::generic::NAPTR::getFlags |
( |
| ) |
const |
◆ getOrder()
| uint16_t isc::dns::rdata::generic::NAPTR::getOrder |
( |
| ) |
const |
◆ getPreference()
| uint16_t isc::dns::rdata::generic::NAPTR::getPreference |
( |
| ) |
const |
◆ getRegexp()
| const std::string isc::dns::rdata::generic::NAPTR::getRegexp |
( |
| ) |
const |
◆ getReplacement()
| const Name & isc::dns::rdata::generic::NAPTR::getReplacement |
( |
| ) |
const |
◆ getServices()
| const std::string isc::dns::rdata::generic::NAPTR::getServices |
( |
| ) |
const |
◆ operator=()
| NAPTR & isc::dns::rdata::generic::NAPTR::operator= |
( |
const NAPTR & |
source | ) |
|
◆ toText()
| virtual std::string isc::dns::rdata::generic::NAPTR::toText |
( |
| ) |
const |
|
virtual |
Convert an Rdata to a string.
This method returns a std::string object representing the Rdata.
This is a pure virtual method without the definition; the actual representation is specific to each derived concrete class and should be explicitly defined in the derived class.
- Returns
- A string representation of
Rdata.
Implements isc::dns::rdata::Rdata.
◆ toWire() [1/2]
Render the Rdata in the wire format into a MessageRenderer object.
This is a pure virtual method without the definition; the actual conversion is specific to each derived concrete class and should be explicitly defined in the derived class.
- Parameters
-
| renderer | DNS message rendering context that encapsulates the output buffer in which the Rdata is to be stored. |
Implements isc::dns::rdata::Rdata.
◆ toWire() [2/2]
Render the Rdata in the wire format into a buffer.
This is a pure virtual method without the definition; the actual conversion is specific to each derived concrete class and should be explicitly defined in the derived class.
- Parameters
-
| buffer | An output buffer to store the wire data. |
Implements isc::dns::rdata::Rdata.
The documentation for this class was generated from the following file: