12 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h>
18 #include <QtCore/QString>
19 #include <QtCore/QObject>
46 void add(
const QString & key,
const QList<TOPPASResource> & resource_list);
48 const QList<TOPPASResource> &
get(
const QString & key)
const;
50 void load(
const QString & file_name);
52 void store(
const QString & file_name);
59 std::map<QString, QList<TOPPASResource> >
map_;
A dictionary mapping string keys to lists of TOPPASResource objects.
Definition: TOPPASResources.h:32
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:61
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:59
void store(const QString &file_name)
Writes the dictionary to file file_name.
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19