Core::BaseTextDocument Class
class Core::BaseTextDocumentBaseTextDocument クラスは、テキストを扱うドキュメントのための非常に汎用性の高い基底クラスです。詳細...
| Header: | #include <coreplugin/textdocument.h> |
| Inherits: | Core::IDocument |
パブリック関数
| Utils::TextFileFormat | format() const |
| Core::BaseTextDocument::ReadResult | read(const Utils::FilePath &filePath) |
| Utils::Result<> | write(const Utils::FilePath &filePath, const QString &data) const |
| Utils::Result<> | write(const Utils::FilePath &filePath, const Utils::TextFileFormat &format, const QString &data) const |
Utils::TextFileFormatも参照してください 。
メンバ関数のドキュメント
Utils::TextFileFormat BaseTextDocument::format() const
read() の直近の呼び出しから取得したフォーマットを返します。
Core::BaseTextDocument::ReadResult BaseTextDocument::read(const Utils::FilePath &filePath)
ファイル形式を自動検出し、filePath で指定されたテキストファイルを読み込みます。
操作が成功したかどうかを返します。
Utils::Result<> BaseTextDocument::write(const Utils::FilePath &filePath, const QString &data) const
テキストファイル `filePath` の内容(data )を出力します。ファイルの直近の `read()` から取得したフォーマットを使用します。
操作が成功したかどうかを返します。
Utils::Result<> BaseTextDocument::write(const Utils::FilePath &filePath, const Utils::TextFileFormat &format, const QString &data) const
テキストファイル `filePath` の内容(data )を出力します。カスタム形式 `format` を使用します。
操作が成功したかどうかを返します。
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.