Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Public Member Functions | Protected Attributes

TOPPASResources Class Reference
[TOPPAS]

A dictionary mapping string keys to lists of TOPPASResource objects. More...

#include <OpenMS/VISUAL/TOPPASResources.h>

Inheritance diagram for TOPPASResources:
QObject

List of all members.

Public Member Functions

 TOPPASResources ()
 Constructor.
 TOPPASResources (const TOPPASResources &rhs)
 Copy constructor.
virtual ~TOPPASResources ()
 Destructor.
TOPPASResourcesoperator= (const TOPPASResources &rhs)
 Assignment operator.
void add (const QString &key, const QList< TOPPASResource > &resource_list)
 Adds the (key,resource_list) pair to 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.
void store (const QString &file_name)
 Writes the dictionary to file file_name.
void clear ()
 Clears the dictionary.

Protected Attributes

Map< QString, QList
< TOPPASResource > > 
map_
 The dictionary.
QList< TOPPASResourceempty_list_
 The empty list.

Detailed Description

A dictionary mapping string keys to lists of TOPPASResource objects.


Constructor & Destructor Documentation

TOPPASResources (  ) 

Constructor.

TOPPASResources ( const TOPPASResources rhs  ) 

Copy constructor.

virtual ~TOPPASResources (  )  [virtual]

Destructor.


Member Function Documentation

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().


Member Data Documentation

QList<TOPPASResource> empty_list_ [protected]

The empty list.

Map<QString, QList<TOPPASResource> > map_ [protected]

The dictionary.


OpenMS / TOPP release 1.10.0 Documentation generated on Thu Mar 7 2013 09:42:58 using doxygen 1.7.1