libDwmRDAP-0.1.4
Dwm::RDAP::FetchedEntry Class Reference

Encapsulates the IPv4 prefix, country code and lastUpdated parts of a response from dwmrdapd. More...

#include <DwmRDAPFetcher.hh>

Public Member Functions

 FetchedEntry ()=default
 Default constructor.
 
 FetchedEntry (const Ipv4Prefix &prefix, const std::string &country, const TimeValue64 &lastUpdated)
 Construct from the given IPv4 prefix, country and lastUpdated. More...
 
const Ipv4Prefix & Prefix () const
 Returns the contained IPv4 prefix.
 
const Ipv4Prefix & Prefix (const Ipv4Prefix &prefix)
 Sets and returns the contained IPv4 prefix.
 
const std::string & Country () const
 Returns the contained country code.
 
const std::string & Country (const std::string &country)
 Sets and returns the contained country code.
 
const TimeValue64 & LastUpdated () const
 Returns the contained 'last updated' field. More...
 
const TimeValue64 & LastUpdated (const TimeValue64 &lastUpdated)
 Sets and returns the 'last updated' field. More...
 

Detailed Description

Encapsulates the IPv4 prefix, country code and lastUpdated parts of a response from dwmrdapd.

Constructor & Destructor Documentation

◆ FetchedEntry()

Dwm::RDAP::FetchedEntry::FetchedEntry ( const Ipv4Prefix &  prefix,
const std::string &  country,
const TimeValue64 &  lastUpdated 
)

Construct from the given IPv4 prefix, country and lastUpdated.

This is a convenience constuctor used internally by the Fetcher class.

Member Function Documentation

◆ LastUpdated() [1/2]

const TimeValue64& Dwm::RDAP::FetchedEntry::LastUpdated ( ) const

Returns the contained 'last updated' field.

This represents the last time that dwmrdapd updated the entry by querying the RDAP servers of the Network Information Center.

◆ LastUpdated() [2/2]

const TimeValue64& Dwm::RDAP::FetchedEntry::LastUpdated ( const TimeValue64 &  lastUpdated)

Sets and returns the 'last updated' field.

This represents the last time that dwmrdapd updated the entry by querying the RDAP servers of the Network Information Center.


The documentation for this class was generated from the following file: