Mantid
Loading...
Searching...
No Matches
Namespaces | Functions
ParseKeyValueString.h File Reference
#include "DllOption.h"
#include "MantidKernel/System.h"
#include "MantidQtWidgets/Common/IAlgorithmRuntimeProps.h"
#include <QString>
#include <sstream>
#include <string>
#include <map>

Go to the source code of this file.

Namespaces

namespace  MantidQt
 The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress bar for them, and a property list.
 
namespace  MantidQt::MantidWidgets
 

Functions

std::string EXPORT_OPT_MANTIDQT_COMMON MantidQt::MantidWidgets::convertAlgPropsToString (MantidQt::API::IAlgorithmRuntimeProps const &options)
 
QString EXPORT_OPT_MANTIDQT_COMMON MantidQt::MantidWidgets::convertMapToString (const std::map< QString, QString > &optionsMap, const char separator=',', const bool quoteValues=true)
 Convert an options map to a string. More...
 
std::string EXPORT_OPT_MANTIDQT_COMMON MantidQt::MantidWidgets::convertMapToString (const std::map< std::string, std::string > &optionsMap, const char separator, const bool quoteValues)
 Convert an options map to a comma-separated list of key=value pairs. More...
 
std::string EXPORT_OPT_MANTIDQT_COMMON MantidQt::MantidWidgets::optionsToString (std::map< std::string, std::string > const &options, const bool quoteValues=true, const std::string &separator=", ")
 
std::map< QString, QString > DLLExport MantidQt::MantidWidgets::parseKeyValueQString (const QString &qstr, const std::string &separator)
 Parses a string in the format ‘a = 1,b=2, c = "1,2,3,4", d = 5.0, e='a,b,c’` into a map of key/value pairs. More...
 
std::map< std::string, std::string > DLLExport MantidQt::MantidWidgets::parseKeyValueString (const std::string &str, const std::string &separator)
 Parses a string in the format ‘a = 1,b=2, c = "1,2,3,4", d = 5.0, e='a,b,c’` into a map of key/value pairs. More...
 
void MantidQt::MantidWidgets::trimWhitespaceAndQuotes (const QString &valueIn)
 
void MantidQt::MantidWidgets::trimWhitespaceQuotesAndEmptyValues (QStringList &values)
 Trim whitespace and quotes from the start/end for all strings in the given list, and subsequently remove any empty strings from the list. More...