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
Referenced by FeatureMap< OpenMS::Feature >::clear().
| DocumentIdentifier | ( | const DocumentIdentifier & | source | ) |
Copy constructor.
|
virtual |
destructor
| const String& getIdentifier | ( | ) | const |
retrieve document identifier (e.g. an LSID)
Referenced by FeatureMap< OpenMS::Feature >::operator+=().
| 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.
Referenced by FeatureMap< OpenMS::Feature >::clear(), FeatureMap< OpenMS::Feature >::operator+=(), and FeatureMap< OpenMS::Feature >::operator=().
| bool operator== | ( | const DocumentIdentifier & | rhs | ) | const |
Equality operator.
Referenced by FeatureMap< OpenMS::Feature >::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
| 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
| void swap | ( | DocumentIdentifier & | from | ) |
exchange content with from
Referenced by FeatureMap< OpenMS::Feature >::swap().
|
protected |
the path to the loaded file
|
protected |
the type of the loaded file
|
protected |
the ID (e.g. LSID)
| OpenMS / TOPP release 1.11.1 | Documentation generated on Thu Nov 14 2013 11:19:32 using doxygen 1.8.5 |