filesaver
filesaver::services::InMemoryFileSizeService Class Reference

#include <InMemoryFileSizeService.h>

Public Member Functions

 INJECT (InMemoryFileSizeService())
 
std::optional< off_t > getCurrentSizeAt (const std::string &filepath)
 
void onFileEntry (std::shared_ptr< FileEntry > entry)
 
void onFileEntryBulk (std::vector< std::shared_ptr< FileEntry >> entries)
 
void cleanEntry (std::string key)
 
void cleanEntryBulk (std::vector< std::string > keys)
 
void setDelegate (InMemoryFileEntryStore::Delegate *delegate)
 
void clearDelegate ()
 

Detailed Description

Definition at line 18 of file InMemoryFileSizeService.h.

Member Function Documentation

◆ cleanEntry()

void filesaver::services::InMemoryFileSizeService::cleanEntry ( std::string  key)

Definition at line 37 of file InMemoryFileSizeService.cpp.

◆ cleanEntryBulk()

void filesaver::services::InMemoryFileSizeService::cleanEntryBulk ( std::vector< std::string >  keys)

Definition at line 48 of file InMemoryFileSizeService.cpp.

◆ clearDelegate()

void filesaver::services::InMemoryFileSizeService::clearDelegate ( )

Definition at line 63 of file InMemoryFileSizeService.cpp.

◆ getCurrentSizeAt()

std::optional< off_t > filesaver::services::InMemoryFileSizeService::getCurrentSizeAt ( const std::string &  filepath)

Definition at line 16 of file InMemoryFileSizeService.cpp.

◆ INJECT()

filesaver::services::InMemoryFileSizeService::INJECT ( InMemoryFileSizeService()  )

◆ onFileEntry()

void filesaver::services::InMemoryFileSizeService::onFileEntry ( std::shared_ptr< FileEntry entry)

Definition at line 22 of file InMemoryFileSizeService.cpp.

◆ onFileEntryBulk()

void filesaver::services::InMemoryFileSizeService::onFileEntryBulk ( std::vector< std::shared_ptr< FileEntry >>  entries)

Definition at line 28 of file InMemoryFileSizeService.cpp.

◆ setDelegate()

void filesaver::services::InMemoryFileSizeService::setDelegate ( InMemoryFileEntryStore::Delegate delegate)

Definition at line 57 of file InMemoryFileSizeService.cpp.


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