Developer documentation
Version 3.0.3-105-gd3941f44
MR::Path Namespace Reference

Classes

class  Dir
 

Functions

std::string basename (const std::string &name)
 
std::string dirname (const std::string &name)
 
std::string join (const std::string &first, const std::string &second)
 
bool exists (const std::string &path)
 
bool is_dir (const std::string &path)
 
bool is_file (const std::string &path)
 
bool has_suffix (const std::string &name, const std::string &suffix)
 
bool has_suffix (const std::string &name, const std::initializer_list< const std::string > &suffix_list)
 
bool has_suffix (const std::string &name, const vector< std::string > &suffix_list)
 
bool is_mrtrix_image (const std::string &name)
 
std::string cwd ()
 
std::string home ()
 
char delimiter (const std::string &filename)
 

Function Documentation

◆ basename()

std::string MR::Path::basename ( const std::string &  name)
inline

Definition at line 60 of file path.h.

◆ cwd()

std::string MR::Path::cwd ( )
inline

Definition at line 156 of file path.h.

◆ delimiter()

char MR::Path::delimiter ( const std::string &  filename)
inline

Definition at line 214 of file path.h.

◆ dirname()

std::string MR::Path::dirname ( const std::string &  name)
inline

Definition at line 67 of file path.h.

◆ exists()

bool MR::Path::exists ( const std::string &  path)
inline

Definition at line 88 of file path.h.

◆ has_suffix() [1/3]

bool MR::Path::has_suffix ( const std::string &  name,
const std::initializer_list< const std::string > &  suffix_list 
)
inline

Definition at line 136 of file path.h.

◆ has_suffix() [2/3]

bool MR::Path::has_suffix ( const std::string &  name,
const std::string &  suffix 
)
inline

Definition at line 130 of file path.h.

◆ has_suffix() [3/3]

bool MR::Path::has_suffix ( const std::string &  name,
const vector< std::string > &  suffix_list 
)
inline

Definition at line 143 of file path.h.

◆ home()

std::string MR::Path::home ( )
inline

Definition at line 171 of file path.h.

◆ is_dir()

bool MR::Path::is_dir ( const std::string &  path)
inline

Definition at line 104 of file path.h.

◆ is_file()

bool MR::Path::is_file ( const std::string &  path)
inline

Definition at line 120 of file path.h.

◆ is_mrtrix_image()

bool MR::Path::is_mrtrix_image ( const std::string &  name)
inline

Definition at line 150 of file path.h.

◆ join()

std::string MR::Path::join ( const std::string &  first,
const std::string &  second 
)
inline

Definition at line 74 of file path.h.