38 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h>
44 #include <QtCore/QString>
45 #include <QtCore/QObject>
72 void add(
const QString & key,
const QList<TOPPASResource> & resource_list);
74 const QList<TOPPASResource> &
get(
const QString & key)
const;
76 void load(
const QString & file_name);
78 void store(
const QString & file_name);
85 std::map<QString, QList<TOPPASResource> >
map_;
A dictionary mapping string keys to lists of TOPPASResource objects.
Definition: TOPPASResources.h:58
TOPPASResources & operator=(const TOPPASResources &rhs)
Assignment operator.
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:87
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.
std::map< QString, QList< TOPPASResource > > map_
The dictionary.
Definition: TOPPASResources.h:85
void store(const QString &file_name)
Writes the dictionary to file file_name.
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:48