|
OpenMS
2.5.0
|
Go to the documentation of this file.
48 typedef Map<Internal::ToolDescriptionInternal, Internal::ToolDescriptionInternal>
ToolMapping;
70 bool getNewToolName(
const String & old_name,
const String & tools_type,
String & new_name);
Definition: INIUpdater.h:51
Base class for TOPP applications.
Definition: TOPPBase.h:144
Param copy(const String &prefix, bool remove_prefix=false) const
Returns a new Param object containing all entries that start with prefix.
static ToolMapping map_
Definition: INIUpdater.h:73
A container for all visual items of a TOPPAS workflow.
Definition: TOPPASScene.h:85
void setValue(const String &key, const DataValue &value, const String &description="", const StringList &tags=StringList())
Sets a value.
OpenMS parameters file with workflow information (.toppas)
Definition: FileTypes.h:70
A more convenient string class.
Definition: String.h:58
OpenMS parameters file (.ini)
Definition: FileTypes.h:69
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
The file pendant of the Param class used to load and store the param datastructure as paramXML.
Definition: ParamXMLFile.h:49
const DataValue & getValue(const String &key) const
Returns a value of a parameter.
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:193
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
bool exists(const String &key) const
Tests if a parameter is set (expecting its fully qualified name, e.g., TextExporter:1:proteins_only)
Map< Internal::ToolDescriptionInternal, Internal::ToolDescriptionInternal > ToolMapping
Updates an INI.
Definition: INIUpdater.h:49
Facilitates file handling by file type recognition.
Definition: FileHandler.h:62
Type
Actual file types enum.
Definition: FileTypes.h:58
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)
QString toQString() const
Conversion to Qt QString.
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:70
int main(int argc, const char **argv)
Definition: INIFileEditor.cpp:73
bool update(const Param &p_outdated, const bool add_unknown=false)
Rescue parameter values from p_outdated to current param.
void remove(const String &key)
Remove the entry key or a section key (when suffix is ':')
Management and storage of parameters / INI files.
Definition: Param.h:73
static String getTempDirectory()
The current OpenMS temporary data path (for temporary files)
void store(const String &filename, const Param ¶m) const
Write XML file.
Map class based on the STL map (containing several convenience functions)
Definition: Map.h:50
void load(const String &filename, Param ¶m)
Read XML file.
void insert(const String &prefix, const Param ¶m)
std::ifstream infile
Questionable file tested by TEST_FILE_EQUAL.