|
QGroundControl
Ground Control Station for MAVLink Drones
|
#include <ComponentInformationCache.h>
Inheritance diagram for ComponentInformationCache:
Collaboration diagram for ComponentInformationCache:Public Member Functions | |
| ComponentInformationCache (const QDir &path, int maxNumFiles) | |
| QString | access (const QString &fileTag) |
| QString | insert (const QString &fileTag, const QString &fileName) |
Static Public Member Functions | |
| static ComponentInformationCache & | defaultInstance () |
Simple file cache with a maximum number of files and LRU retention policy based on last access Notes:
Definition at line 17 of file ComponentInformationCache.h.
| ComponentInformationCache::ComponentInformationCache | ( | const QDir & | path, |
| int | maxNumFiles | ||
| ) |
Definition at line 11 of file ComponentInformationCache.cc.
| QString ComponentInformationCache::access | ( | const QString & | fileTag | ) |
Try to access a file and set the access counter
| fileTag |
Definition at line 34 of file ComponentInformationCache.cc.
|
static |
Definition at line 17 of file ComponentInformationCache.cc.
| QString ComponentInformationCache::insert | ( | const QString & | fileTag, |
| const QString & | fileName | ||
| ) |
Insert a file into the cache & remove old files if there's too many.
| fileTag | |
| fileName | file to insert, will be moved (or deleted if already exists) |
Definition at line 71 of file ComponentInformationCache.cc.