7 #ifndef CSV_LEASE_FILE4_H
8 #define CSV_LEASE_FILE4_H
51 virtual void open(
const bool seek_to_end =
false);
172 #endif // CSV_LEASE_FILE4_H
Structure that holds a lease for IPv4 address.
bool next(Lease4Ptr &lease)
Reads next lease from the CSV file.
Provides methods to access CSV file with DHCPv4 leases.
boost::shared_ptr< Lease4 > Lease4Ptr
Pointer to a Lease4 structure.
boost::shared_ptr< const Element > ConstElementPtr
Represents a single row of the CSV file.
CSVLeaseFile4(const std::string &filename)
Constructor.
boost::shared_ptr< ClientId > ClientIdPtr
Shared pointer to a Client ID.
Defines the logger used by the top-level component of kea-dhcp-ddns.
Provides statistics for leases.
Implements a CSV file that supports multiple versions of the file's "schema".
Hardware type that represents information from DHCPv4 packet.
void append(const Lease4 &lease)
Appends the lease record to the CSV file.
virtual void open(const bool seek_to_end=false)
Opens a lease file.
The IOAddress class represents an IP addresses (version agnostic)
uint32_t SubnetID
Unique identifier for a subnet (both v4 and v6)