![]() |
Kea
2.5.2
|
#include <duid.h>
Public Member Functions | |
IdentifierType (const std::vector< uint8_t > &data) | |
Constructor from vector. More... | |
IdentifierType (const uint8_t *data, size_t len) | |
Constructor from array and array size. More... | |
bool | operator!= (const IdentifierType &other) const |
Compares two identifiers for inequality. More... | |
bool | operator== (const IdentifierType &other) const |
Compares two identifiers for equality. More... | |
std::string | toText () const |
Returns textual representation of the identifier (e.g. More... | |
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. More... | |
static constexpr size_t | getMaxSize () |
Return the maximum size of the acceptable data. More... | |
static constexpr size_t | getMinSize () |
Return the minimum size of the acceptable data. More... | |
Protected Attributes | |
std::vector< uint8_t > | data_ |
The actual content of the Identifier. More... | |
Additional Inherited Members | |
![]() | |
virtual | ~IdentifierBaseType ()=0 |
Pure virtual destructor. More... | |
|
inline |
Constructor from vector.
data | The data used to create the IdentifierType |
Definition at line 39 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 55 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 104 of file duid.h.
References isc::util::str::decodeFormattedHexString().
Referenced by isc::dhcp::DUID::fromText(), and isc::dhcp::ClientId::fromText().
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inline |
Compares two identifiers for inequality.
Definition at line 120 of file duid.h.
References isc::dhcp::IdentifierType< min_size, max_size >::data_.
|
inline |
Compares two identifiers for equality.
Definition at line 113 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 84 of file duid.h.
References isc::dhcp::IdentifierType< min_size, max_size >::data_.
Referenced by isc::dhcp::Memfile_LeaseMgr::getLease4(), isc::dhcp::MySqlLeaseMgr::getLease4(), isc::dhcp::PgSqlLeaseMgr::getLease4(), isc::dhcp::LeaseMgr::getLease6(), isc::dhcp::Memfile_LeaseMgr::getLeases6(), isc::dhcp::MySqlLeaseMgr::getLeases6(), isc::dhcp::PgSqlLeaseMgr::getLeases6(), isc::dhcp::Memfile_LeaseMgr::getLeases6ByRelayId(), isc::dhcp::MySqlLeaseMgr::getLeases6ByRelayId(), isc::dhcp::PgSqlLeaseMgr::getLeases6ByRelayId(), and isc::perfdhcp::ExchangeStats::receivedLeases().
|
protected |
The actual content of the Identifier.
Definition at line 127 of file duid.h.
Referenced by 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().