Represents a data resource for TOPPAS workflows. More...
#include <OpenMS/VISUAL/TOPPASResource.h>
Public Member Functions | |
TOPPASResource (const QString &file) | |
Constructor. More... | |
TOPPASResource (const QUrl &url) | |
Constructor from URL. More... | |
TOPPASResource (const TOPPASResource &rhs) | |
Copy constructor. More... | |
virtual | ~TOPPASResource () |
Destructor. More... | |
TOPPASResource & | operator= (const TOPPASResource &rhs) |
Assignment operator. More... | |
void | writeToFile (const QString &file_name) |
Writes this resource to the local file file . More... | |
const QString & | getLocalFile () const |
Returns the file name of the local file, or "" if it has not been written yet. More... | |
const QUrl & | getURL () const |
Returns the URL of this resource. More... | |
void | fromLocalFile (const QString &file) |
Sets the URL of this resource from file . More... | |
Static Public Attributes | |
static QStringList | supported_schemes |
Supported schemes. More... | |
Protected Attributes | |
QUrl | url_ |
The URL of this resource. More... | |
QString | file_name_ |
The name of the local file. More... | |
Represents a data resource for TOPPAS workflows.
Currently, the only supported type of resource is local files.
TOPPASResource | ( | const QString & | file | ) |
Constructor.
TOPPASResource | ( | const QUrl & | url | ) |
Constructor from URL.
TOPPASResource | ( | const TOPPASResource & | rhs | ) |
Copy constructor.
|
virtual |
Destructor.
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
.
|
protected |
The name of the local file.
|
static |
Supported schemes.
|
protected |
The URL of this resource.
OpenMS / TOPP release 2.3.0 | Documentation generated on Tue Jan 9 2018 18:22:13 using doxygen 1.8.13 |