NCBI C++ ToolKit
Public Member Functions | Protected Attributes | List of all members
CUniqueLabelGenerator Class Reference

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>

+ Collaboration diagram for CUniqueLabelGenerator:

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< stringm_ExistingLabels
 

Detailed Description

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.


The documentation for this class was generated from the following files:
Modified on Wed Feb 21 09:56:30 2024 by modify_doxy.py rev. 669887