BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
JobStatus.cpp File Reference

Description

Implements class JobWorker.

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 JobStatus.cpp.

Include dependency graph for JobStatus.cpp:

Go to the source code of this file.

Functions

JobStatus jobStatusFromString (const QString &name)
 get status value for given string representation More...
 
QString jobStatusToString (JobStatus status)
 get a string representation of the status More...
 

Function Documentation

◆ jobStatusFromString()

JobStatus jobStatusFromString ( const QString &  name)

get status value for given string representation

Definition at line 39 of file JobStatus.cpp.

40 {
41  auto it = status2name.right.find(name);
42  ASSERT(it != status2name.right.end());
43  return it->second;
44 }
QString const & name(EShape k)
Definition: particles.cpp:20

References GUI::RealSpace::Particles::name().

Referenced by JobItem::getStatus().

Here is the call graph for this function:

◆ jobStatusToString()

QString jobStatusToString ( JobStatus  status)

get a string representation of the status

Definition at line 32 of file JobStatus.cpp.

33 {
34  auto it = status2name.left.find(status);
35  ASSERT(it != status2name.left.end());
36  return it->second;
37 }

Referenced by JobItem::JobItem(), JobPropertiesTableModel::data(), and JobItem::setStatus().