OpenMS
2.4.0
|
Manage source document information. More...
#include <OpenMS/METADATA/DocumentIdentifier.h>
Public Member Functions | |
Constructors and Destructors | |
DocumentIdentifier () | |
default constructor More... | |
DocumentIdentifier (const DocumentIdentifier &source) | |
Copy constructor. More... | |
DocumentIdentifier & | operator= (const DocumentIdentifier &source) |
Assignment operator. More... | |
bool | operator== (const DocumentIdentifier &rhs) const |
Equality operator. More... | |
virtual | ~DocumentIdentifier () |
destructor More... | |
Acessors | |
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... | |
Protected Attributes | |
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... | |
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
DocumentIdentifier | ( | const DocumentIdentifier & | source | ) |
Copy 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
DocumentIdentifier& operator= | ( | const DocumentIdentifier & | source | ) |
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)