Tags OpenMS file containers with a DocumentID.
Definition: DocumentIDTagger.h:55
DocumentIDTagger()
Constructor (declared away)
String pool_file_
location of the ID pool
Definition: DocumentIDTagger.h:128
void setPoolFile(const String &file)
Set the file used as ID pool.
bool countFreeIDs(Int &free) const
return the number of available IDs in the pool.
String toolname_
name of the calling TOPP tool
Definition: DocumentIDTagger.h:125
DocumentIDTagger(String toolname)
Constructor.
DocumentIDTagger(const DocumentIDTagger &source)=default
Copy constructor.
DocumentIDTagger & operator=(const DocumentIDTagger &source)=default
Assignment operator.
bool getID_(String &id, Int &free, bool idcount_only) const
retrieve an ID from the pool
bool tag(DocumentIdentifier &map) const
Tags any structure which is derived from DocumentIdentifier with a unique tag.
~DocumentIDTagger()
Destructor.
bool operator==(const DocumentIDTagger &source) const
Equality operator.
String getPoolFile() const
Return the file used as ID pool.
bool operator!=(const DocumentIDTagger &source) const
Equality operator.
Manage source document information.
Definition: DocumentIdentifier.h:56
A more convenient string class.
Definition: String.h:61
int Int
Signed integer type.
Definition: Types.h:102
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47