NCBI C++ ToolKit
|
Search Toolkit Book for CUniqueLabelGenerator
CUniqueLabelGenerator Modifies the given label so that it becomes unique in the given set of labels by appending a numeric postfix ( "name" -> "name (1)" ) More...
#include <gui/utils/id_generator.hpp>
Public Member Functions | |
CUniqueLabelGenerator () | |
CUniqueLabelGenerator. More... | |
void | AddExistingLabel (const string &label) |
adds an existing label More... | |
string | MakeUniqueLabel (const string &label) const |
after considering all existing labels produces a modified unique version of the original label More... | |
Protected Attributes | |
set< string > | m_ExistingLabels |
CUniqueLabelGenerator Modifies the given label so that it becomes unique in the given set of labels by appending a numeric postfix ( "name" -> "name (1)" )
Definition at line 66 of file id_generator.hpp.