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

Defines class CLASS? More...

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

Go to the source code of this file.

Namespaces

 ModelView
 materialitems.h Collection of materials to populate MaterialModel.
 
 ModelView::Utils
 Collection of various widget-related utils.
 

Functions

MVVM_MODEL_EXPORT std::string ModelView::Utils::base_name (const std::string &path)
 Provide the filename of a file path. More...
 
MVVM_MODEL_EXPORT bool ModelView::Utils::create_directory (const std::string &path)
 Create directory, parent directory must exist. More...
 
MVVM_MODEL_EXPORT bool ModelView::Utils::exists (const std::string &fileName)
 Returns true if file exists. More...
 
MVVM_MODEL_EXPORT std::vector< std::string > ModelView::Utils::FindFiles (const std::string &dirname, const std::string &ext)
 Returns list of files with given extention found in given directory. More...
 
MVVM_MODEL_EXPORT bool ModelView::Utils::is_empty (const std::string &path)
 Returns true if the file indicated by 'path' refers to empty file or directory. More...
 
MVVM_MODEL_EXPORT std::string ModelView::Utils::join (const std::string &part1, const std::string &part2)
 Joins two path elements into the path. More...
 
MVVM_MODEL_EXPORT std::string ModelView::Utils::parent_path (const std::string &path)
 Returns the path to the parent directory. More...
 
MVVM_MODEL_EXPORT bool ModelView::Utils::remove (const std::string &path)
 Removes file or empty directory. More...
 
MVVM_MODEL_EXPORT void ModelView::Utils::remove_all (const std::string &path)
 Removes directory with all its content. More...
 

Detailed Description

Defines class CLASS?

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

Definition in file fileutils.h.