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

Defines ProjectUtils namespace. More...

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

Go to the source code of this file.

Namespaces

 ProjectUtils
 Defines convenience function for project manager and document.
 

Functions

QString ProjectUtils::autosaveDir (const QString &projectFileName)
 Returns name of autosave directory for project with given project file name. More...
 
QString ProjectUtils::autosaveName (const QString &projectFileName)
 Returns name of project for autoSave from given project file name. More...
 
QString ProjectUtils::autosaveSubdir ()
 Returns fixed name for autosave sub-directory. More...
 
bool ProjectUtils::exists (const QString &fileName)
 Returns true if file exists. More...
 
bool ProjectUtils::hasAutosavedData (const QString &projectFileName)
 Returns true if project with given projectFileName contains autosaved data. More...
 
QString ProjectUtils::lastModified (const QString &fileName)
 Returns a string representing modification time of given file. More...
 
QStringList ProjectUtils::nonXMLDataInDir (const QString &dirname)
 Returns list of files on disk representing nonXML data. More...
 
QString ProjectUtils::projectDir (const QString &projectFileName)
 Returns project directory deduced from project file name. More...
 
QString ProjectUtils::projectName (const QString &projectFileName)
 Returns project name deduced from project file name. More...
 
QString ProjectUtils::readTextFile (const QString &fileName)
 Returns multi-lione string representing content of text file. More...
 
bool ProjectUtils::removeFile (const QString &dirname, const QString &filename)
 Remove file from given directory. More...
 
bool ProjectUtils::removeFiles (const QString &dirname, const QStringList &filenames)
 
bool ProjectUtils::removeRecursively (const QString &dirname)
 Removes recursively directory with given name. More...
 
QStringList ProjectUtils::substract (const QStringList &lhs, const QStringList &rhs)
 Returns list of string from lhs, which are not in rhs. More...
 
QString ProjectUtils::userExportDir ()
 Returns directory which user is normally using to export files. More...
 

Detailed Description

Defines ProjectUtils namespace.

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 ProjectUtils.h.