|
MGL(Win32)
|
ファイルマウンタ [詳解]
#include <mgl_file_mounter.h>
クラス | |
| struct | MountProperty |
| マウント情報 [詳解] | |
公開型 | |
| using | SharedMountProperty = std::shared_ptr<MountProperty> |
| マウント情報の共有ポインタ | |
公開メンバ関数 | |
| Result | Mount (const PathView &mountName, const PathView &path, MountAccessType accessType, DelegateKey delegateKey=kDefaultDelegateKey) noexcept |
| マウント | |
| Result | Unmount (const PathView &mountName) noexcept |
| マウント解除 | |
| SharedMountProperty | Get (const PathView &mountName) noexcept |
| マウント情報を取得 | |
| bool | IsMounted (const PathView &mountName) noexcept |
| マウントされているかを取得 | |
| Result | AddDelegate (DelegateKey key, const SharedDelegate &delegate) noexcept |
| デリゲートを追加 | |
| Result | RemoveDelegate (DelegateKey key) noexcept |
| デリゲートを削除 | |
| SharedDelegate | GetDelegate (DelegateKey key=kDefaultDelegateKey) noexcept |
| デリゲートを取得 | |
| void | SetDefaultDelegate (DelegateKey key) noexcept |
| デフォルトのデリゲートを設定 | |
基底クラス MGL::SharedSingleton< Mounter > に属する継承公開メンバ関数 | |
| SharedSingleton (const SharedSingleton &) noexcept=delete | |
| SharedSingleton (SharedSingleton &&) noexcept=delete | |
| SharedSingleton & | operator= (const SharedSingleton &) noexcept=delete |
| SharedSingleton & | operator= (SharedSingleton &&) noexcept=delete |
静的公開メンバ関数 | |
| static STL::unique_ptr< Mounter > & | GetInstanceRef () noexcept |
| インスタンスの取得 | |
基底クラス MGL::SharedSingleton< Mounter > に属する継承静的公開メンバ関数 | |
| static Mounter & | CreateInstance (Args... args) noexcept |
| インスタンスの生成 | |
| static Mounter & | GetInstance () noexcept |
| インスタンスの取得 | |
| static void | DestroyInstance () noexcept |
| インスタンスの破棄 | |
| static bool | HasInstance () noexcept |
| 有効なインスタンスを保持しているかを取得 | |
静的公開変数類 | |
| static constexpr DelegateKey | kDefaultDelegateKey = MakeDelegateKey("MGL-Default") |
| デフォルトを表す予約デリゲートキー | |
ファイルマウンタ
|
noexcept |
デリゲートを追加
| [in] | key | デリゲートキー |
| [in] | delegate | 追加するデリゲート |
|
nodiscardnoexcept |
マウント情報を取得
| [in] | mountName | マウント名 |
|
nodiscardnoexcept |
デリゲートを取得
| [in] | key | デリゲートキー |
|
staticnodiscardnoexcept |
インスタンスの取得
|
nodiscardnoexcept |
マウントされているかを取得
| [in] | mountName | マウント名 |
| true | マウントされている |
| false | マウントされていない |
|
noexcept |
マウント
| [in] | mountName | マウント名 |
| [in] | path | マウント先のパス |
| [in] | accessType | アクセスタイプ |
| [in] | delegateKey | デリゲートキー |
|
noexcept |
デリゲートを削除
| [in] | key | デリゲートキー |
|
inlinenoexcept |
デフォルトのデリゲートを設定
| [in] | key | デフォルトのデリゲートキー |
マウント解除
| [in] | mountName | マウント名 |