OpenMS
|
Manage source document information. More...
#include <OpenMS/METADATA/DocumentIdentifier.h>
Public Member Functions | |
Constructors and Destructors | |
DocumentIdentifier () | |
Default constructor. More... | |
DocumentIdentifier (const DocumentIdentifier &)=default | |
Copy constructor. More... | |
DocumentIdentifier (DocumentIdentifier &&)=default | |
Move constructor. More... | |
virtual | ~DocumentIdentifier () |
Destructor. More... | |
DocumentIdentifier & | operator= (const DocumentIdentifier &)=default |
Assignment operator. More... | |
DocumentIdentifier & | operator= (DocumentIdentifier &&) &=default |
Move assignment operator. More... | |
bool | operator== (const DocumentIdentifier &rhs) const |
Equality operator. More... | |
Acessors | |
String | id_ |
the ID (e.g. LSID) More... | |
String | file_path_ |
the path to the loaded file More... | |
FileTypes::Type | file_type_ |
the type of the loaded file More... | |
void | setIdentifier (const String &id) |
set document identifier (e.g. an LSID) More... | |
const String & | getIdentifier () const |
retrieve document identifier (e.g. an LSID) More... | |
void | swap (DocumentIdentifier &from) |
exchange content with from More... | |
void | setLoadedFilePath (const String &file_name) |
set the file_name_ according to absolute path of the file loaded from preferably done whilst loading More... | |
const String & | getLoadedFilePath () const |
get the file_name_ which is the absolute path to the file loaded from More... | |
void | setLoadedFileType (const String &file_name) |
set the file_type according to the type of the file loaded from (see FileHandler::Type) preferably done whilst loading More... | |
const FileTypes::Type & | getLoadedFileType () const |
get the file_type (e.g. featureXML, consensusXML, mzData, mzXML, mzML, ...) of the file loaded from More... | |
Manage source document information.
This class stored information about the source document. Primarily this is the document id e.g. a LSID.
For source files additional information can be stored:
Default constructor.
|
default |
Copy constructor.
|
default |
Move constructor.
|
virtual |
Destructor.
const String& getIdentifier | ( | ) | const |
retrieve document identifier (e.g. an LSID)
const String& getLoadedFilePath | ( | ) | const |
get the file_name_ which is the absolute path to the file loaded from
Referenced by OpenSwathHelper::checkSwathMapAndSelectTransitions().
const FileTypes::Type& getLoadedFileType | ( | ) | const |
get the file_type (e.g. featureXML, consensusXML, mzData, mzXML, mzML, ...) of the file loaded from
|
default |
Assignment operator.
|
default |
Move assignment operator.
bool operator== | ( | const DocumentIdentifier & | rhs | ) | const |
Equality operator.
void setIdentifier | ( | const String & | id | ) |
set document identifier (e.g. an LSID)
void setLoadedFilePath | ( | const String & | file_name | ) |
set the file_name_ according to absolute path of the file loaded from preferably done whilst loading
Referenced by MS2File::load(), and DTA2DFile::load().
void setLoadedFileType | ( | const String & | file_name | ) |
set the file_type according to the type of the file loaded from (see FileHandler::Type) preferably done whilst loading
Referenced by MS2File::load(), and DTA2DFile::load().
void swap | ( | DocumentIdentifier & | from | ) |
exchange content with from
|
protected |
the path to the loaded file
|
protected |
the type of the loaded file
|
protected |
the ID (e.g. LSID)