Utils::QrcCache Class
class Utils::QrcCacheКласс QrcCache кэширует содержимое проанализированных файлов QRC. Подробнее...
| Header: | #include <QrcCache> |
Общедоступные функции
| Utils::QrcParser::ConstPtr | addPath(const Utils::FilePath &path, const QString &contents) |
| void | clear() |
| Utils::QrcParser::ConstPtr | parsedPath(const Utils::FilePath &path) |
| void | removePath(const Utils::FilePath &path) |
| Utils::QrcParser::ConstPtr | updatePath(const Utils::FilePath &path, const QString &contents) |
См. также « Utils::QrcParser ».
Документация по функциям-членам
Utils::QrcParser::ConstPtr QrcCache::addPath(const Utils::FilePath &path, const QString &contents)
Осуществляет синтаксический анализ файла QRC, расположенного по адресу path, и кэширует результат анализа. Если переменная contents не пуста, её содержимое используется в качестве содержимого файла вместо чтения из файловой системы.
Возвращает значение, указывающее, удался ли анализ.
См. также QrcParser::errorMessages() и QrcParser::parseQrcFile().
void QrcCache::clear()
Очищает содержимое кэша.
Utils::QrcParser::ConstPtr QrcCache::parsedPath(const Utils::FilePath &path)
Возвращает кэшированный парсер QRC для файла QRC, расположенного по адресу path.
void QrcCache::removePath(const Utils::FilePath &path)
Удаляет файл « path » из кэша.
Utils::QrcParser::ConstPtr QrcCache::updatePath(const Utils::FilePath &path, const QString &contents)
Повторно анализирует файл QRC, расположенный по адресу path, и возвращает идентификатор файла ( contents ).
Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.