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