QrcCache Class

class Utils::QrcCache

The QrcCache class caches the contents of parsed QRC files. More...

Header: #include <QrcCache>

Public Functions

QrcParser::ConstPtr addPath(const class QString &path, const class QString &contents)
void clear()
QrcParser::ConstPtr parsedPath(const class QString &path)
void removePath(const class QString &path)
QrcParser::ConstPtr updatePath(const class QString &path, const class QString &contents)

Detailed Description

See also Utils::QrcParser.

Member Function Documentation

QrcParser::ConstPtr QrcCache::addPath(const class QString &path, const class QString &contents)

Parses the QRC file at path and caches the parser. If contents is not empty, it is used as the file contents instead of reading it from the file system.

Returns whether the parsing succeeded.

See also QrcParser::errorMessages() and QrcParser::parseQrcFile().

void QrcCache::clear()

Clears the contents of the cache.

QrcParser::ConstPtr QrcCache::parsedPath(const class QString &path)

Returns the cached QRC parser for the QRC file at path.

void QrcCache::removePath(const class QString &path)

Removes path from the cache.

QrcParser::ConstPtr QrcCache::updatePath(const class QString &path, const class QString &contents)

Reparses the QRC file at path and returns the contents of the file.