BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
GUI::Model::FilenameUtils Namespace Reference

Description

Contains set of convenience methods for JobItem and its children.

Functions

QString jobNativeDataFileName (const QString &id)
 
QString jobReferenceFileName (const QString &itemName)
 Constructs the name of the file with reference data. More...
 
QString jobResultsFileName (const QString &itemName)
 Constructs the name of the file with simulated intensities. More...
 
QString nativeDataFileName (const QString &dataName)
 
QStringList nonXMLFileNameFilters ()
 Returns list of fileName filters related to nonXML data stored by JobModel and RealDataModel. More...
 
QString realDataFileName (const QString &dataName)
 Constructs the name of the intensity file belonging to real data item. More...
 

Function Documentation

◆ jobNativeDataFileName()

QString GUI::Model::FilenameUtils::jobNativeDataFileName ( const QString &  id)

Definition at line 50 of file ItemFileNameUtils.cpp.

51 {
52  return intensityDataFileName(id, nativedata_file_prefix);
53 }

Referenced by GUI::Model::JobFunctions::copyRealDataItem(), and JobItem::updateIntensityDataFileName().

◆ jobReferenceFileName()

QString GUI::Model::FilenameUtils::jobReferenceFileName ( const QString &  itemName)

Constructs the name of the file with reference data.

Definition at line 45 of file ItemFileNameUtils.cpp.

46 {
47  return intensityDataFileName(itemName, refdata_file_prefix);
48 }

Referenced by GUI::Model::JobFunctions::copyRealDataItem(), and JobItem::updateIntensityDataFileName().

◆ jobResultsFileName()

QString GUI::Model::FilenameUtils::jobResultsFileName ( const QString &  itemName)

Constructs the name of the file with simulated intensities.

Definition at line 38 of file ItemFileNameUtils.cpp.

39 {
40  return intensityDataFileName(itemName, jobdata_file_prefix);
41 }

Referenced by JobItem::updateIntensityDataFileName().

◆ nativeDataFileName()

QString GUI::Model::FilenameUtils::nativeDataFileName ( const QString &  dataName)

Definition at line 62 of file ItemFileNameUtils.cpp.

63 {
64  return intensityDataFileName(dataName, nativedata_file_prefix);
65 }

Referenced by RealDataItem::updateNonXMLDataFileNames().

◆ nonXMLFileNameFilters()

QStringList GUI::Model::FilenameUtils::nonXMLFileNameFilters ( )

Returns list of fileName filters related to nonXML data stored by JobModel and RealDataModel.

Definition at line 70 of file ItemFileNameUtils.cpp.

71 {
72  QStringList result = QStringList() << QString(jobdata_file_prefix + "_*.int.gz")
73  << QString(refdata_file_prefix + "_*.int.gz")
74  << QString(realdata_file_prefix + "_*.int.gz")
75  << QString(nativedata_file_prefix + "_*.int.gz")
76  << QString(instrument_file_prefix + "_*.int.gz");
77 
78  return result;
79 }

◆ realDataFileName()

QString GUI::Model::FilenameUtils::realDataFileName ( const QString &  dataName)

Constructs the name of the intensity file belonging to real data item.

Definition at line 57 of file ItemFileNameUtils.cpp.

58 {
59  return intensityDataFileName(dataName, realdata_file_prefix);
60 }

Referenced by RealDataItem::updateNonXMLDataFileNames().