ファイルパスクラス  
 [詳解]
#include <mgl_file_path.h>
◆ Path() [1/3]
  
  
      
        
          | MGL::File::Path::Path  | 
          ( | 
          size_t |           reserveSize = 0 | ) | 
           | 
         
       
   | 
  
noexcept   | 
  
 
 
◆ Path() [2/3]
  
  
      
        
          | MGL::File::Path::Path  | 
          ( | 
          const char * |           path | ) | 
           | 
         
       
   | 
  
noexcept   | 
  
 
 
◆ Path() [3/3]
  
  
      
        
          | MGL::File::Path::Path  | 
          ( | 
          const char * |           path,  | 
         
        
           | 
           | 
          size_t |           reserveSize ) | 
         
       
   | 
  
noexcept   | 
  
 
コンストラクタ 
- 引数
 - 
  
    | [in] | path | 設定するパスの文字列  | 
    | [in] | reserveSize | 予約サイズ  | 
  
   
 
 
◆ Append()
  
  
      
        
          | Path & MGL::File::Path::Append  | 
          ( | 
          const char * |           element | ) | 
           | 
         
       
   | 
  
noexcept   | 
  
 
 
◆ Concat() [1/2]
  
  
      
        
          | Path & MGL::File::Path::Concat  | 
          ( | 
          char |           character | ) | 
           | 
         
       
   | 
  
noexcept   | 
  
 
 
◆ Concat() [2/2]
  
  
      
        
          | Path & MGL::File::Path::Concat  | 
          ( | 
          const char * |           string | ) | 
           | 
         
       
   | 
  
noexcept   | 
  
 
 
◆ GetCString()
  
  
      
        
          | const char * MGL::File::Path::GetCString  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlinenodiscardnoexcept   | 
  
 
C言語の文字列として取得 
- 戻り値
 - const char *型の文字列 
 
 
 
◆ GetExtension()
  
  
      
        
          | Path MGL::File::Path::GetExtension  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
nodiscardnoexcept   | 
  
 
拡張子を取得 
- 戻り値
 - 拡張子.取得できない場合は空のパス 
 
 
 
◆ GetFilename()
  
  
      
        
          | Path MGL::File::Path::GetFilename  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
nodiscardnoexcept   | 
  
 
ファイル名の取得 
- 戻り値
 - ファイル名.取得できない場合は空のパス 
 
 
 
◆ GetLength()
  
  
      
        
          | size_t MGL::File::Path::GetLength  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlinenodiscardnoexcept   | 
  
 
パスの長さを取得 
- 戻り値
 - パスの長さ(終端記号を除くchar型の要素数) 
 
 
 
◆ GetMountName()
  
  
      
        
          | Path MGL::File::Path::GetMountName  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
nodiscardnoexcept   | 
  
 
マウント名の取得 
- 戻り値
 - マウント名.取得できない場合は空のパス 
 
 
 
◆ GetParent()
  
  
      
        
          | Path MGL::File::Path::GetParent  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
nodiscardnoexcept   | 
  
 
親ディレクトリのパスを取得 
- 戻り値
 - 親ディレクトリのパス.取得できない場合は空のパス 
 
 
 
◆ GetRelativePath()
  
  
      
        
          | Path MGL::File::Path::GetRelativePath  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
nodiscardnoexcept   | 
  
 
ルートまたはマウントからの相対パスを取得 
- 戻り値
 - 相対パス.取得できない場合は空のパス 
 
 
 
◆ GetRoot()
  
  
      
        
          | Path MGL::File::Path::GetRoot  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
nodiscardnoexcept   | 
  
 
ルートパスの取得 
- 戻り値
 - ルートパス.取得できない場合は空のパス 
 
 
 
◆ GetStem()
  
  
      
        
          | Path MGL::File::Path::GetStem  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
nodiscardnoexcept   | 
  
 
拡張子を除いたファイル名を取得 
- 戻り値
 - 拡張子を除いたファイル名.取得できない場合は空のパス 
 
 
 
◆ IsEmpty()
  
  
      
        
          | bool MGL::File::Path::IsEmpty  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlinenodiscardnoexcept   | 
  
 
 
◆ operator const char *()
  
  
      
        
          | MGL::File::Path::operator const char *  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inlinenoexcept   | 
  
 
const char *型へのキャスト 
- 戻り値
 - const char *型の文字列 
 
 
 
◆ operator+=() [1/2]
  
  
      
        
          | Path & MGL::File::Path::operator+=  | 
          ( | 
          char |           character | ) | 
           | 
         
       
   | 
  
inlinenoexcept   | 
  
 
 
◆ operator+=() [2/2]
  
  
      
        
          | Path & MGL::File::Path::operator+=  | 
          ( | 
          const char * |           string | ) | 
           | 
         
       
   | 
  
inlinenoexcept   | 
  
 
 
◆ operator/=()
  
  
      
        
          | Path & MGL::File::Path::operator/=  | 
          ( | 
          const char * |           element | ) | 
           | 
         
       
   | 
  
inlinenoexcept   | 
  
 
 
◆ Set()
  
  
      
        
          | void MGL::File::Path::Set  | 
          ( | 
          const char * |           path | ) | 
           | 
         
       
   | 
  
inlinenoexcept   | 
  
 
 
このクラス詳解は次のファイルから抽出されました: