38 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h>
45 #include <QtCore/QString>
46 #include <QtCore/QObject>
71 void add(
const QString & key,
const QList<TOPPASResource> & resource_list);
73 const QList<TOPPASResource> &
get(
const QString & key)
const;
75 void load(
const QString & file_name);
77 void store(
const QString & file_name);
Map class based on the STL map (containing several convenience functions)
Definition: Map.h:52
A dictionary mapping string keys to lists of TOPPASResource objects.
Definition: TOPPASResources.h:57
TOPPASResources & operator=(const TOPPASResources &rhs)
Assignment operator.
Map< QString, QList< TOPPASResource > > map_
The dictionary.
Definition: TOPPASResources.h:84
TOPPASResources(const TOPPASResources &rhs)
Copy constructor.
void add(const QString &key, const QList< TOPPASResource > &resource_list)
Adds the (key,resource_list) pair to the dictionary.
void load(const QString &file_name)
Loads the dictionary from file file_name.
QList< TOPPASResource > empty_list_
The empty list.
Definition: TOPPASResources.h:86
TOPPASResources()
Constructor.
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.
~TOPPASResources() override
Destructor.
void clear()
Clears the dictionary.
void store(const QString &file_name)
Writes the dictionary to file file_name.
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47