OpenMS
2.4.0
|
A dictionary mapping string keys to lists of TOPPASResource objects. More...
#include <OpenMS/VISUAL/TOPPASResources.h>
Public Member Functions | |
TOPPASResources () | |
Constructor. More... | |
TOPPASResources (const TOPPASResources &rhs) | |
Copy constructor. More... | |
~TOPPASResources () override | |
Destructor. More... | |
TOPPASResources & | operator= (const TOPPASResources &rhs) |
Assignment operator. More... | |
void | add (const QString &key, const QList< TOPPASResource > &resource_list) |
Adds the (key,resource_list) pair to the dictionary. More... | |
const QList< TOPPASResource > & | get (const QString &key) const |
Returns the resource list that key is mapped to, or an empty list if key does not exist. More... | |
void | load (const QString &file_name) |
Loads the dictionary from file file_name . More... | |
void | store (const QString &file_name) |
Writes the dictionary to file file_name . More... | |
void | clear () |
Clears the dictionary. More... | |
Protected Attributes | |
Map< QString, QList< TOPPASResource > > | map_ |
The dictionary. More... | |
QList< TOPPASResource > | empty_list_ |
The empty list. More... | |
A dictionary mapping string keys to lists of TOPPASResource objects.
TOPPASResources | ( | ) |
Constructor.
TOPPASResources | ( | const TOPPASResources & | rhs | ) |
Copy constructor.
|
override |
Destructor.
void add | ( | const QString & | key, |
const QList< TOPPASResource > & | resource_list | ||
) |
Adds the (key,resource_list) pair to the dictionary.
void clear | ( | ) |
Clears the dictionary.
const QList<TOPPASResource>& get | ( | const QString & | key | ) | const |
Returns the resource list that key
is mapped to, or an empty list if key
does not exist.
void load | ( | const QString & | file_name | ) |
Loads the dictionary from file file_name
.
Referenced by TOPPASBase::loadPipelineResourceFile().
TOPPASResources& operator= | ( | const TOPPASResources & | rhs | ) |
Assignment operator.
void store | ( | const QString & | file_name | ) |
Writes the dictionary to file file_name
.
Referenced by TOPPASBase::savePipelineResourceFile().
|
protected |
The empty list.
|
protected |
The dictionary.