60 static const std::string NamesOfChecksumType[SIZE_OF_CHECKSUMTYPE];
124 ChecksumType checksum_type_ = SourceFile::ChecksumType::UNKNOWN_CHECKSUM;
Representation of controlled vocabulary term list.
Definition: CVTermList.h:54
Description of a file location, used to store the origin of (meta) data.
Definition: SourceFile.h:48
const String & getChecksum() const
returns the file's checksum
SourceFile & operator=(const SourceFile &)=default
Assignment operator.
String checksum_
Definition: SourceFile.h:123
void setFileType(const String &file_type)
sets the file type
void setPathToFile(const String &path_path_to_file)
sets the file path
SourceFile & operator=(SourceFile &&) &=default
Move assignment operator.
bool operator!=(const SourceFile &rhs) const
Equality operator.
const String & getNameOfFile() const
returns the file name
ChecksumType
Type of the checksum.
Definition: SourceFile.h:52
@ SHA1
Secure Hash Algorithm-1.
Definition: SourceFile.h:54
@ UNKNOWN_CHECKSUM
Unknown checksum type.
Definition: SourceFile.h:53
@ MD5
Message-Digest algorithm 5.
Definition: SourceFile.h:55
const String & getFileType() const
returns the file type
SourceFile(SourceFile &&)=default
Move constructor.
~SourceFile() override
Destructor.
float getFileSize() const
returns the file size in MB
String native_id_type_
Definition: SourceFile.h:125
const String & getNativeIDType() const
Returns the native ID type of the spectra.
const String & getNativeIDTypeAccession() const
Returns the nativeID of the spectra.
String path_to_file_
Definition: SourceFile.h:120
ChecksumType getChecksumType() const
returns the checksum type
const String & getPathToFile() const
returns the file path
String native_id_type_accession_
Definition: SourceFile.h:126
SourceFile(const SourceFile &)=default
Copy constructor.
void setNativeIDType(const String &type)
Sets the native ID type of the spectra.
double file_size_
Definition: SourceFile.h:121
void setNameOfFile(const String &name_of_file)
sets the file name
String file_type_
Definition: SourceFile.h:122
String name_of_file_
Definition: SourceFile.h:119
void setNativeIDTypeAccession(const String &accesssion)
Sets the native ID of the spectra.
void setFileSize(float file_size)
sets the file size in MB
bool operator==(const SourceFile &rhs) const
Equality operator.
void setChecksum(const String &checksum, ChecksumType type)
sets the file's checksum
A more convenient string class.
Definition: String.h:61
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47