例外を発生させるファイルユーティリティクラス  
 [詳解]
#include <mgl_file_throwing_utility.h>
 | 
| size_t  | GetSize (const PathView &path) | 
|   | ファイルのサイズを取得  
  | 
|   | 
| void  | MakeDirectory (const PathView &path) | 
|   | ディレクトリを作成する  
  | 
|   | 
| void  | Move (const PathView &sourcePath, const PathView &destPath) | 
|   | ファイルの移動・リネーム  
  | 
|   | 
| void  | Remove (const PathView &path) | 
|   | ファイルの削除  
  | 
|   | 
| void  | Copy (const PathView &sourcePath, const PathView &destPath) | 
|   | ファイルのコピー  
  | 
|   | 
| bool  | Exists (const PathView &path) | 
|   | ファイルの存在をチェック  
  | 
|   | 
| bool  | IsSystemNativeFile (const PathView &path) | 
|   | システム標準のファイルであるかをチェック  
  | 
|   | 
| void  | Mount (const PathView &mountName, const PathView &path, MountAccessType accessType, DelegateKey delegateKey=Mounter::kDefaultDelegateKey) | 
|   | マウント  
  | 
|   | 
| void  | Unmount (const PathView &mountName) | 
|   | マウント解除  
  | 
|   | 
| void  | Remount (const PathView &mountName, const PathView &path, MountAccessType accessType, DelegateKey delegateKey=Mounter::kDefaultDelegateKey) | 
|   | 再マウント  
  | 
|   | 
| STL::string  | GetSystemNativePath (const PathView &path) | 
|   | マウントパスからシステム標準のパスに変換  
  | 
|   | 
| void  | RemoveDelegate (DelegateKey key) | 
|   | デリゲートの削除  
  | 
|   | 
| template<class DelegateClass , class... Args>  | 
| constexpr void  | AddDelegate (DelegateKey key, Args... args) | 
|   | デリゲートの追加  
  | 
|   | 
◆ AddDelegate()
template<class DelegateClass , class... Args> 
  
  
      
        
          | void MGL::File::ThrowingUtility::AddDelegate  | 
          ( | 
          DelegateKey |           key,  | 
         
        
           | 
           | 
          Args... |           args ) | 
         
       
   | 
  
inlineconstexpr   | 
  
 
デリゲートの追加 
- テンプレート引数
 - 
  
    | DelegateClass | 追加するデリゲートクラス  | 
  
   
- 引数
 - 
  
    | [in] | key | デリゲートキー  | 
    | [in] | args | デリゲートクラスのコンストラクタに渡す引数  | 
  
   
- 例外
 - 
  
  
 
 
 
◆ Copy()
      
        
          | void MGL::File::ThrowingUtility::Copy  | 
          ( | 
          const PathView & |           sourcePath,  | 
        
        
           | 
           | 
          const PathView & |           destPath ) | 
        
      
 
ファイルのコピー 
- 引数
 - 
  
    | [in] | sourcePath | コピー元のパス  | 
    | [in] | destPath | コピー先のパス  | 
  
   
- 例外
 - 
  
  
 
 
 
◆ Exists()
  
  
      
        
          | bool MGL::File::ThrowingUtility::Exists  | 
          ( | 
          const PathView & |           path | ) | 
           | 
         
       
   | 
  
nodiscard   | 
  
 
 
◆ GetSize()
  
  
      
        
          | size_t MGL::File::ThrowingUtility::GetSize  | 
          ( | 
          const PathView & |           path | ) | 
           | 
         
       
   | 
  
nodiscard   | 
  
 
ファイルのサイズを取得 
- 引数
 - 
  
  
 
- 戻り値
 - ファイルサイズ 
 
- 例外
 - 
  
  
 
 
 
◆ GetSystemNativePath()
マウントパスからシステム標準のパスに変換 
- 引数
 - 
  
  
 
- 戻り値
 - システム標準のパス 
 
- 例外
 - 
  
  
 
 
 
◆ IsMounted()
  
  
      
        
          | bool MGL::File::ThrowingUtility::IsMounted  | 
          ( | 
          const PathView & |           mountName | ) | 
           | 
         
       
   | 
  
staticnodiscardnoexcept   | 
  
 
マウントされているかを取得 
- 引数
 - 
  
  
 
- 戻り値
 - 
  
    | true | マウントされている  | 
    | false | マウントされていない  | 
  
   
- 覚え書き
 - この関数は例外を発生させず,File::IsMounted()と等価である 
 
 
 
◆ IsSystemNativeFile()
  
  
      
        
          | bool MGL::File::ThrowingUtility::IsSystemNativeFile  | 
          ( | 
          const PathView & |           path | ) | 
           | 
         
       
   | 
  
nodiscard   | 
  
 
システム標準のファイルであるかをチェック 
- 引数
 - 
  
  
 
- 戻り値
 - 
  
    | true | システム標準のファイルである  | 
    | false | システム標準のファイルではない  | 
  
   
- 例外
 - 
  
  
 
 
 
◆ MakeDirectory()
      
        
          | void MGL::File::ThrowingUtility::MakeDirectory  | 
          ( | 
          const PathView & |           path | ) | 
           | 
        
      
 
 
◆ Mount()
マウント 
- 引数
 - 
  
    | [in] | mountName | マウント名  | 
    | [in] | path | マウント先のパス  | 
    | [in] | accessType | アクセスタイプ  | 
    | [in] | delegateKey | デリゲートキー  | 
  
   
- 例外
 - 
  
  
 
 
 
◆ Move()
      
        
          | void MGL::File::ThrowingUtility::Move  | 
          ( | 
          const PathView & |           sourcePath,  | 
        
        
           | 
           | 
          const PathView & |           destPath ) | 
        
      
 
ファイルの移動・リネーム 
- 引数
 - 
  
    | [in] | sourcePath | 移動元のパス  | 
    | [in] | destPath | 移動先のパス  | 
  
   
- 例外
 - 
  
  
 
 
 
◆ Remount()
再マウント 
- 引数
 - 
  
    | [in] | mountName | マウント名  | 
    | [in] | path | マウント先のパス  | 
    | [in] | accessType | アクセスタイプ  | 
    | [in] | delegateKey | デリゲートキー  | 
  
   
- 例外
 - 
  
  
 
 
 
◆ Remove()
      
        
          | void MGL::File::ThrowingUtility::Remove  | 
          ( | 
          const PathView & |           path | ) | 
           | 
        
      
 
 
◆ RemoveDelegate()
      
        
          | void MGL::File::ThrowingUtility::RemoveDelegate  | 
          ( | 
          DelegateKey |           key | ) | 
           | 
        
      
 
デリゲートの削除 
- 引数
 - 
  
  
 
- 例外
 - 
  
  
 
- 覚え書き
 - 存在しないデリゲートキーに対しては何もしない 
 
 
 
◆ SetDefaultDelegate()
  
  
      
        
          | void MGL::File::ThrowingUtility::SetDefaultDelegate  | 
          ( | 
          DelegateKey |           key | ) | 
           | 
         
       
   | 
  
staticnoexcept   | 
  
 
デフォルトのデリゲートを設定 
- 引数
 - 
  
  
 
- 覚え書き
 - この関数は例外を発生させず,File::SetDefaultDelegate()と等価である 
 
 
 
◆ Unmount()
      
        
          | void MGL::File::ThrowingUtility::Unmount  | 
          ( | 
          const PathView & |           mountName | ) | 
           | 
        
      
 
 
このクラス詳解は次のファイルから抽出されました: