BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
FileSystemUtils.h File Reference

Defines namespace FileSystemUtils. More...

Include dependency graph for FileSystemUtils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 FileSystemUtils
 Utility functions to deal with file system.
 

Macros

#define BORNAGAIN_BASE_UTILS_FILESYSTEMUTILS_H
 

Functions

std::wstring FileSystemUtils::convert_utf8_to_utf16 (const std::string &str)
 Converts utf8 string represented by std::string to utf16 string represented by std::wstring. More...
 
bool FileSystemUtils::createDirectories (const std::string &dir_name)
 Creates directories in current directory for any element of dir_name which doesn't exist. More...
 
bool FileSystemUtils::createDirectory (const std::string &dir_name)
 Creates directory in current directory. More...
 
std::string FileSystemUtils::extension (const std::string &path)
 Returns extension of given filename. More...
 
std::string FileSystemUtils::extensions (const std::string &path)
 Returns extension(s) of given filename. More...
 
std::string FileSystemUtils::filename (const std::string &path)
 Returns path without directory part ("Foo/Bar/Doz.int.gz" -> "Doz.int.gz") More...
 
std::vector< std::string > FileSystemUtils::filesInDirectory (const std::string &dir_name)
 Returns filenames of files in directory. More...
 
std::vector< std::string > FileSystemUtils::glob (const std::string &dir, const std::string &pattern)
 Returns file names that agree with a regex glob pattern. More...
 
bool FileSystemUtils::IsFileExists (const std::string &path)
 Returns true if file with given name exists on disk. More...
 
std::string FileSystemUtils::jointPath (const std::string &path1, const std::string &path2)
 Returns joint path name. More...
 
std::string FileSystemUtils::stem (const std::string &path)
 Returns filename without (last) extension. More...
 
std::string FileSystemUtils::stem_ext (const std::string &path)
 Returns filename without extension(s). More...
 

Detailed Description

Defines namespace FileSystemUtils.

Homepage:\n http://www.bornagainproject.org
License:\n GNU General Public License v3 or higher (see COPYING)
Authors
Scientific Computing Group at MLZ (see CITATION, AUTHORS)

Definition in file FileSystemUtils.h.

Macro Definition Documentation

◆ BORNAGAIN_BASE_UTILS_FILESYSTEMUTILS_H

#define BORNAGAIN_BASE_UTILS_FILESYSTEMUTILS_H

Definition at line 21 of file FileSystemUtils.h.