35 : myCurrent(begin), myPrefix(prefix) {}
40 : myCurrent(0), myPrefix(prefix) {
41 for (std::vector<std::string>::const_iterator id_it = knownIDs.begin(); id_it != knownIDs.end(); ++id_it) {
52 std::ostringstream strm;
63 std::istringstream buf(
id.substr(
myPrefix.size()));
long long int myCurrent
The current index.
std::string myPrefix
The prefix to use.
std::string getNext()
Returns the next id.
IDSupplier(const std::string &prefix="", long long int begin=0)
Constructor.
void avoid(const std::string &id)
make sure that the given id is never supplied