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

TOPPASResource Class Reference
[TOPPAS]

Represents a data resource for TOPPAS workflows. More...

#include <OpenMS/VISUAL/TOPPASResource.h>

Inheritance diagram for TOPPASResource:
QObject

List of all members.

Public Member Functions

 TOPPASResource (const QString &file)
 Constructor.
 TOPPASResource (const QUrl &url)
 Constructor from URL.
 TOPPASResource (const TOPPASResource &rhs)
 Copy constructor.
virtual ~TOPPASResource ()
 Destructor.
TOPPASResourceoperator= (const TOPPASResource &rhs)
 Assignment operator.
void writeToFile (const QString &file_name)
 Writes this resource to the local file file.
const QString & getLocalFile () const
 Returns the file name of the local file, or "" if it has not been written yet.
const QUrl & getURL () const
 Returns the URL of this resource.
void fromLocalFile (const QString &file)
 Sets the URL of this resource from file.

Static Public Attributes

static QStringList supported_schemes
 Supported schemes.

Protected Attributes

QUrl url_
 The URL of this resource.
QString file_name_
 The name of the local file.

Detailed Description

Represents a data resource for TOPPAS workflows.

Currently, the only supported type of resource is local files.


Constructor & Destructor Documentation

TOPPASResource ( const QString &  file  ) 

Constructor.

TOPPASResource ( const QUrl &  url  ) 

Constructor from URL.

TOPPASResource ( const TOPPASResource rhs  ) 

Copy constructor.

virtual ~TOPPASResource (  )  [virtual]

Destructor.


Member Function Documentation

void fromLocalFile ( const QString &  file  ) 

Sets the URL of this resource from file.

const QString& getLocalFile (  )  const

Returns the file name of the local file, or "" if it has not been written yet.

const QUrl& getURL (  )  const

Returns the URL of this resource.

TOPPASResource& operator= ( const TOPPASResource rhs  ) 

Assignment operator.

void writeToFile ( const QString &  file_name  ) 

Writes this resource to the local file file.


Member Data Documentation

QString file_name_ [protected]

The name of the local file.

QStringList supported_schemes [static]

Supported schemes.

QUrl url_ [protected]

The URL of this resource.


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