Fréchet View  1.6.0
A Tool for Exploring Fréchet Distance Algorithms
frechet::app::FileEntry Struct Reference

Detailed Description

an entry in the recently opened file list

Definition at line 12 of file filehistory.h.

#include <filehistory.h>

Public Member Functions

 FileEntry (QString apath, size_t id, QDateTime adate=QDateTime::currentDateTime())
 default constructor More...
 
bool operator< (const FileEntry &that) const
 compare files by their last-used date More...
 

Public Attributes

QString path
 absolute path to file More...
 
size_t id
 unique identifier issued by FileHistory More...
 
QDateTime used
 time when the file was last used More...
 

Constructor & Destructor Documentation

◆ FileEntry()

FileEntry::FileEntry ( QString  apath,
size_t  id,
QDateTime  adate = QDateTime::currentDateTime() 
)

default constructor

Parameters
apathabsolute path to file
idunique identifier issued by FileHistory
adatetime when the file was last used

Definition at line 13 of file filehistory.cpp.

Member Function Documentation

◆ operator<()

bool FileEntry::operator< ( const FileEntry that) const

compare files by their last-used date

Parameters
thatanother file
Returns
true, if last-used date is later than 'that'

Definition at line 17 of file filehistory.cpp.

Member Data Documentation

◆ id

size_t frechet::app::FileEntry::id

unique identifier issued by FileHistory

Definition at line 18 of file filehistory.h.

◆ path

QString frechet::app::FileEntry::path

absolute path to file

Definition at line 16 of file filehistory.h.

◆ used

QDateTime frechet::app::FileEntry::used

time when the file was last used

Definition at line 20 of file filehistory.h.


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