Leosac  0.8.0
Open Source Access Control
Leosac::Audit::AuditTracker Class Reference

Implementation of IAuditTracker, backed by ODB. More...

#include <AuditTracker.hpp>

Public Member Functions

 AuditTracker ()=default
 
 AuditTracker (const AuditEntry &)=delete
 
virtual ~AuditTracker ()=default
 
virtual AuditEntryId last_id () const
 
void last (AuditEntryLPtr)
 Set the last tracked audit entry. More...
 

Private Attributes

odb::lazy_shared_ptr< AuditEntrylast_
 The last audit entry we kept track of. More...
 

Friends

class odb::access
 

Detailed Description

Implementation of IAuditTracker, backed by ODB.

See also
IAuditTracker

Definition at line 38 of file AuditTracker.hpp.

Constructor & Destructor Documentation

◆ AuditTracker() [1/2]

Leosac::Audit::AuditTracker::AuditTracker ( )
default

◆ AuditTracker() [2/2]

Leosac::Audit::AuditTracker::AuditTracker ( const AuditEntry )
delete

◆ ~AuditTracker()

virtual Leosac::Audit::AuditTracker::~AuditTracker ( )
virtualdefault

Member Function Documentation

◆ last()

void AuditTracker::last ( AuditEntryLPtr  l)

Set the last tracked audit entry.

Definition at line 35 of file AuditTracker.cpp.

◆ last_id()

AuditEntryId AuditTracker::last_id ( ) const
virtual

Definition at line 28 of file AuditTracker.cpp.

Friends And Related Function Documentation

◆ odb::access

friend class odb::access
friend

Definition at line 60 of file AuditTracker.hpp.

Member Data Documentation

◆ last_

odb::lazy_shared_ptr<AuditEntry> Leosac::Audit::AuditTracker::last_
private

The last audit entry we kept track of.

Definition at line 58 of file AuditTracker.hpp.


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