BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
String.h
Go to the documentation of this file.
1
// ************************************************************************************************
2
//
3
// BornAgain: simulate and fit reflection and scattering
4
//
5
//! @file GUI/Util/String.h
6
//! @brief Defines functions from namespace GUI::Util::String
7
//!
8
//! @homepage http://www.bornagainproject.org
9
//! @license GNU General Public License v3 or higher (see COPYING)
10
//! @copyright Forschungszentrum Jülich GmbH 2018
11
//! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12
//
13
// ************************************************************************************************
14
15
#ifndef BORNAGAIN_GUI_UTIL_STRING_H
16
#define BORNAGAIN_GUI_UTIL_STRING_H
17
18
#include <QString>
19
#include <vector>
20
21
namespace
GUI::Util::String
{
22
23
//! Returns a name suggestion based on the given name.
24
//!
25
//! Tries to add a reasonable numbering in brackets if necessary (e.g. "GISAS" -> "GISAS (2)")
26
QString
suggestName
(
const
QStringList& existingNames,
const
QString&
name
);
27
28
QStringList
fromStdStrings
(
const
std::vector<std::string>& container);
29
30
QString
readTextFile
(
const
QString& fileName);
31
32
}
// namespace GUI::Util::String
33
34
#endif
// BORNAGAIN_GUI_UTIL_STRING_H
GUI::RealSpace::Particles::name
QString const & name(EShape k)
Definition:
particles.cpp:20
GUI::Util::String
Definition:
String.h:21
GUI::Util::String::fromStdStrings
QStringList fromStdStrings(const std::vector< std::string > &container)
Definition:
String.cpp:18
GUI::Util::String::suggestName
QString suggestName(const QStringList &existingNames, const QString &name)
Returns a name suggestion based on the given name.
Definition:
String.cpp:26
GUI::Util::String::readTextFile
QString readTextFile(const QString &fileName)
GUI
Util
String.h
Generated by
1.9.1