![]() |
Kea 2.7.8
|
#include <duid.h>
Public Member Functions | |
IdentifierType (const std::vector< uint8_t > &data) | |
Constructor from vector. | |
IdentifierType (const uint8_t *data, size_t len) | |
Constructor from array and array size. | |
bool | operator!= (const IdentifierType &other) const |
Compares two identifiers for inequality. | |
bool | operator== (const IdentifierType &other) const |
Compares two identifiers for equality. | |
std::string | toText () const |
Returns textual representation of the identifier (e.g. | |
Static Public Member Functions | |
static std::vector< uint8_t > | fromText (const std::string &text) |
This static function parses an Identifier specified in the textual format. | |
static constexpr size_t | getMaxSize () |
Return the maximum size of the acceptable data. | |
static constexpr size_t | getMinSize () |
Return the minimum size of the acceptable data. | |
Protected Attributes | |
std::vector< uint8_t > | data_ |
The actual content of the Identifier. | |
Additional Inherited Members | |
![]() | |
virtual | ~IdentifierBaseType ()=0 |
Pure virtual destructor. | |
|
inline |
Constructor from vector.
data | The data used to create the IdentifierType |
Definition at line 43 of file duid.h.
References isc::dhcp::IdentifierType< min_size, max_size >::data_, and isc_throw.
|
inline |
Constructor from array and array size.
data | The data used to create the Identifier |
len | The data len used to create the Identifier |
Definition at line 59 of file duid.h.
References isc::dhcp::IdentifierType< min_size, max_size >::data_, and isc_throw.
|
inlinestatic |
This static function parses an Identifier specified in the textual format.
text | Identifier in the hexadecimal format with digits representing individual bytes separated by colons. |
Definition at line 108 of file duid.h.
References isc::util::str::decodeFormattedHexString().
Referenced by isc::dhcp::ClientId::fromText(), and isc::dhcp::DUID::fromText().
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inline |
Compares two identifiers for inequality.
Definition at line 124 of file duid.h.
References isc::dhcp::IdentifierType< min_size, max_size >::data_.
|
inline |
Compares two identifiers for equality.
Definition at line 117 of file duid.h.
References isc::dhcp::IdentifierType< min_size, max_size >::data_.
|
inline |
Returns textual representation of the identifier (e.g.
00:01:02:03:ff)
Definition at line 88 of file duid.h.
References isc::dhcp::IdentifierType< min_size, max_size >::data_.
Referenced by isc::dhcp::Memfile_LeaseMgr::getLease4(), isc::dhcp::Memfile_LeaseMgr::getLease4(), isc::dhcp::LeaseMgr::getLease6(), isc::dhcp::Memfile_LeaseMgr::getLeases6(), isc::dhcp::Memfile_LeaseMgr::getLeases6(), isc::dhcp::Memfile_LeaseMgr::getLeases6(), isc::dhcp::Memfile_LeaseMgr::getLeases6ByRelayId(), and isc::perfdhcp::ExchangeStats::receivedLeases().
|
protected |
The actual content of the Identifier.
Definition at line 131 of file duid.h.
Referenced by isc::dhcp::IdentifierType< min_size, max_size >::IdentifierType(), isc::dhcp::IdentifierType< min_size, max_size >::IdentifierType(), isc::dhcp::IdentifierType< min_size, max_size >::operator!=(), isc::dhcp::IdentifierType< min_size, max_size >::operator==(), and isc::dhcp::IdentifierType< min_size, max_size >::toText().