QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
RFileCache.h
Go to the documentation of this file.
1
20#ifndef RFILECACHE_H_
21#define RFILECACHE_H_
22
23#include "core_global.h"
24
25#include <QMetaType>
26#include <QString>
27
28class QBuffer;
29
37public:
38 static QString getContents(const QString& fileName, bool forceReload=false);
39 static QBuffer* getBuffer(const QString& fileName, bool forceReload=false);
40
41private:
42 static QCache<QString, QBuffer> cache;
43};
44
47
48#endif
Q_DECLARE_METATYPE(RMath *)
QBuffer based file cache.
Definition RFileCache.h:36
static QCache< QString, QBuffer > cache
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RFileCache.h:42
#define QCADCORE_EXPORT
Definition core_global.h:10