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... | |
| virtual | ~TOPPASResources () |
| 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.
|
virtual |
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.
| OpenMS / TOPP release 1.11.1 | Documentation generated on Thu Nov 14 2013 11:19:36 using doxygen 1.8.5 |