 |
OpenMS
3.0.0
|
|
Go to the documentation of this file.
49 typedef std::map<Internal::ToolDescriptionInternal, Internal::ToolDescriptionInternal>
ToolMapping;
71 bool getNewToolName(
const String & old_name,
const String & tools_type,
String & new_name);
Definition: INIUpdater.h:52
Base class for TOPP applications.
Definition: TOPPBase.h:147
static ToolMapping map_
Definition: INIUpdater.h:74
void setValue(const std::string &key, const ParamValue &value, const std::string &description="", const std::vector< std::string > &tags=std::vector< std::string >())
Sets a value.
void insert(const std::string &prefix, const Param ¶m)
static QString toQString(const String &this_s)
Definition: StringUtils.h:201
A container for all visual items of a TOPPAS workflow.
Definition: TOPPASScene.h:85
OpenMS parameters file with workflow information (.toppas)
Definition: FileTypes.h:68
A more convenient string class.
Definition: String.h:58
OpenMS parameters file (.ini)
Definition: FileTypes.h:67
const double c
Definition: Constants.h:209
The file pendant of the Param class used to load and store the param datastructure as paramXML.
Definition: ParamXMLFile.h:49
static bool remove(const String &file)
Removes a file (if it exists).
static String getUniqueName(bool include_hostname=true)
Returns a string, consisting of date, time, hostname, process id, and a incrementing number....
static String getExecutablePath()
StringList getToolNamesFromINI(const Param &ini) const
static String concatenate(const std::vector< T > &container, const String &glue="")
Concatenates all elements of the container and puts the glue string between elements.
Definition: ListUtils.h:209
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
Facilitates file handling by file type recognition.
Definition: FileHandler.h:66
Type
Actual file types enum.
Definition: FileTypes.h:56
bool getNewToolName(const String &old_name, const String &tools_type, String &new_name)
static FileTypes::Type getType(const String &filename)
Tries to determine the file type (by name or content)
bool exists(const std::string &key) const
Tests if a parameter is set (expecting its fully qualified name, e.g., TextExporter:1:proteins_only)
QString toQString() const
Conversion to Qt QString.
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:70
std::string toString(bool full_precision=true) const
Convert ParamValue to string.
int main(int argc, const char **argv)
Definition: INIFileEditor.cpp:71
bool update(const Param &p_outdated, const bool add_unknown=false)
Rescue parameter values from p_outdated to current param.
Param copy(const std::string &prefix, bool remove_prefix=false) const
Returns a new Param object containing all entries that start with prefix.
Management and storage of parameters / INI files.
Definition: Param.h:69
static String getTempDirectory()
void store(const String &filename, const Param ¶m) const
Write XML file.
std::map< Internal::ToolDescriptionInternal, Internal::ToolDescriptionInternal > ToolMapping
Updates an INI.
Definition: INIUpdater.h:50
void load(const String &filename, Param ¶m)
Read XML file.
const ParamValue & getValue(const std::string &key) const
Returns a value of a parameter.
void remove(const std::string &key)
Remove the entry key or a section key (when suffix is ':')
std::ifstream infile
Questionable file tested by TEST_FILE_EQUAL.