|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
Classes | |
| class | FileStat |
Functions | |
| std::string | realPath (std::string const &a_path) |
| std::string | _basename (std::string const &a_path) |
| std::string | basenameWithoutExtension (std::string const &a_path) |
| std::string | _dirname (std::string const &a_path) |
| bool | exists (std::string const &a_path) |
| bool | isDirectory (std::string const &a_path) |
| bool | createDirectories (std::string const &a_path) |
| std::string LUPI::FileInfo::_basename | ( | std::string const & | a_path | ) |
Returns the base name of a path.
| a_path | [in] The path whose base name is returned. |
Definition at line 82 of file LUPI_file.cc.
| std::string LUPI::FileInfo::_dirname | ( | std::string const & | a_path | ) |
Returns the directory name of a path. This is, it removes the base name.
| a_path | [in] The path whose base name is returned. |
Definition at line 112 of file LUPI_file.cc.
Referenced by createDirectories().
| std::string LUPI::FileInfo::basenameWithoutExtension | ( | std::string const & | a_path | ) |
Same as basename but removes, if a period (i.e., ".") exists in the string, the last "." and all following characters.
| a_path | [in] The path whose base name is returned without its extension. |
Definition at line 99 of file LUPI_file.cc.
Referenced by LUPI::ArgumentParser::parse().
| bool LUPI::FileInfo::createDirectories | ( | std::string const & | a_path | ) |
Adds all needed directories to complete a_path.
| a_path | [in] The path that is checked for existence. |
Definition at line 165 of file LUPI_file.cc.
Referenced by createDirectories().
| bool LUPI::FileInfo::exists | ( | std::string const & | a_path | ) |
Returns true if the path exists and false otherwise.
| a_path | [in] The path that is checked for existence. |
Definition at line 129 of file LUPI_file.cc.
Referenced by GIDI::Map::Map::RIS_fileExist().
| bool LUPI::FileInfo::isDirectory | ( | std::string const & | a_path | ) |
Returns true if path is a direction that exists and false otherwise.
| a_path | [in] The path that is checked for existence and is it a directory. |
Definition at line 146 of file LUPI_file.cc.
Referenced by createDirectories().
| std::string LUPI::FileInfo::realPath | ( | std::string const & | a_path | ) |
This function takes a file path and returns its real path. On a Unix system, the system function realpath is called.
| a_path | [in] The path whose real path is to be determined. |
Definition at line 63 of file LUPI_file.cc.
Referenced by GIDI::Map::BaseEntry::path().