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
#define QCADCORE_EXPORT
Definition: core_global.h:10
Q_DECLARE_METATYPE(RMath *)
Copyright (c) 2011-2017 by Andrew Mustun.
Definition: RFileCache.h:36
static QCache< QString, QBuffer > cache
Copyright (c) 2011-2017 by Andrew Mustun.
Definition: RFileCache.h:42