OpenMS
|
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... | |
~TOPPASResource () override | |
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.
|
override |
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.