38 #ifdef CHECK_MEMORY_LEAKS 40 #endif // CHECK_MEMORY_LEAKS 47 : myCurrent(begin), myPrefix(prefix) {}
53 for (std::vector<std::string>::const_iterator id_it = knownIDs.begin(); id_it != knownIDs.end(); ++id_it) {
64 std::ostringstream strm;
75 std::istringstream buf(
id.substr(
myPrefix.size(), std::string::npos));
std::string myPrefix
The prefix to use.
void avoid(const std::string &id)
make sure that the given id is never supplied
std::string getNext()
Returns the next id.
IDSupplier(const std::string &prefix="", long begin=0)
Constructor.
long myCurrent
The current index.