이 페이지에서

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.