このページでは

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)

path にある QRC ファイルを解析し、パーサーをキャッシュします。contents が空でない場合、ファイルシステムから読み込む代わりに、その内容がファイルの内容として使用されます。

解析が成功したかどうかを返します。

QrcParser::errorMessages() およびQrcParser::parseQrcFile()も参照してください 。

void QrcCache::clear()

キャッシュの内容を消去します。

Utils::QrcParser::ConstPtr QrcCache::parsedPath(const Utils::FilePath &path)

path にある QRC ファイルのキャッシュされた QRC パーサーを返します。

void QrcCache::removePath(const Utils::FilePath &path)

キャッシュからpath を削除します。

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

path にある QRC ファイルを再解析し、そのファイルの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.