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
36
class
QCADCORE_EXPORT
RFileCache
{
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
45
Q_DECLARE_METATYPE
(
RFileCache
)
46
Q_DECLARE_METATYPE
(
RFileCache
*)
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
src
core
RFileCache.h
Generated on Thu Apr 15 2021 10:10:18 for QCAD by
1.8.18