Manage source document information.
Definition: DocumentIdentifier.h:56
void setIdentifier(const String &id)
set document identifier (e.g. an LSID)
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
DocumentIdentifier & operator=(const DocumentIdentifier &)=default
Assignment operator.
DocumentIdentifier(const DocumentIdentifier &)=default
Copy constructor.
virtual ~DocumentIdentifier()
Destructor.
void setLoadedFilePath(const String &file_name)
set the file_name_ according to absolute path of the file loaded from preferably done whilst loading
DocumentIdentifier(DocumentIdentifier &&)=default
Move constructor.
DocumentIdentifier & operator=(DocumentIdentifier &&) &=default
Move assignment operator.
DocumentIdentifier()
Default constructor.
const FileTypes::Type & getLoadedFileType() const
get the file_type (e.g. featureXML, consensusXML, mzData, mzXML, mzML, ...) of the file loaded from
bool operator==(const DocumentIdentifier &rhs) const
Equality operator.
String file_path_
the path to the loaded file
Definition: DocumentIdentifier.h:117
String id_
the ID (e.g. LSID)
Definition: DocumentIdentifier.h:115
FileTypes::Type file_type_
the type of the loaded file
Definition: DocumentIdentifier.h:119
void setLoadedFileType(const String &file_name)
set the file_type according to the type of the file loaded from (see FileHandler::Type) preferably do...
void swap(DocumentIdentifier &from)
exchange content with from
A more convenient string class.
Definition: String.h:60
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
Type
Actual file types enum.
Definition: FileTypes.h:57