Manage source document information. More...
#include <OpenMS/METADATA/DocumentIdentifier.h>
Public Member Functions | |
Constructors and Destructors | |
| DocumentIdentifier () | |
| default constructor | |
| DocumentIdentifier (const DocumentIdentifier &source) | |
| Copy constructor. | |
| DocumentIdentifier & | operator= (const DocumentIdentifier &source) |
| Assignment operator. | |
| bool | operator== (const DocumentIdentifier &rhs) const |
| Equality operator. | |
| virtual | ~DocumentIdentifier () |
| destructor | |
Acessors | |
| void | setIdentifier (const String &id) |
| set document identifier (e.g. an LSID) | |
| const String & | getIdentifier () const |
| retrieve document identifier (e.g. an LSID) | |
| void | swap (DocumentIdentifier &from) |
exchange content with from | |
| void | setLoadedFilePath (const String &file_name) |
| set the file_name_ according to absolute path of the file loaded from preferrably done whilst loading | |
| const String & | getLoadedFilePath () const |
| get the file_name_ which is the absolute path to the file loaded from | |
| void | setLoadedFileType (const String &file_name) |
| set the file_type according to the type of the file loaded from (see FileHandler::Type) preferrably done whilst loading | |
| const FileTypes::Type & | getLoadedFileType () const |
| get the file_type (e.g. featureXML, consensusXML, mzData, mzXML, mzML, ...) of the file loaded from | |
Protected Attributes | |
| String | id_ |
| the ID (e.g. LSID) | |
| String | file_path_ |
| the path to the loaded file | |
| FileTypes::Type | file_type_ |
| the type of the loaded file | |
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< Feature >::clear().
| DocumentIdentifier | ( | const DocumentIdentifier & | source | ) |
Copy constructor.
| virtual ~DocumentIdentifier | ( | ) | [virtual] |
destructor
| const String& getIdentifier | ( | ) | const |
retrieve document identifier (e.g. an LSID)
Referenced by FeatureMap< 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.
| 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 preferrably 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) preferrably done whilst loading
| void swap | ( | DocumentIdentifier & | from | ) |
exchange content with from
String file_path_ [protected] |
the path to the loaded file
FileTypes::Type file_type_ [protected] |
the type of the loaded file
| OpenMS / TOPP release 1.10.0 | Documentation generated on Thu Mar 7 2013 09:42:56 using doxygen 1.7.1 |