QCAD
Open Source 2D CAD
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 <QBuffer>
27 #include <QCache>
28 #include <QMap>
29 
37 public:
38  static QString getContents(const QString& fileName, bool forceReload=false);
39  static QBuffer* getBuffer(const QString& fileName, bool forceReload=false);
40 
41 private:
42  static QCache<QString, QBuffer> cache;
43 };
44 
47 
48 #endif
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(RMath *)
RFileCache
Copyright (c) 2011-2018 by Andrew Mustun.
Definition: RFileCache.h:36
core_global.h
RFileCache::cache
static QCache< QString, QBuffer > cache
Copyright (c) 2011-2018 by Andrew Mustun.
Definition: RFileCache.h:42
QCADCORE_EXPORT
#define QCADCORE_EXPORT
Definition: core_global.h:10