00001
00002 #ifndef UNIQUESTRINGGENERATOR_HH
00003 #define UNIQUESTRINGGENERATOR_HH
00004
00005 #include "Misc.hh"
00006
00007 #include <string>
00008
00009 class UniqueStringGenerator {
00010
00011 public:
00012 UniqueStringGenerator() { }
00013 virtual ~UniqueStringGenerator() { }
00014
00015 static std::string generate()
00016 {
00017 return std::string("a") + to_string(_id++);
00018 }
00019
00020 private:
00021
00022 static int _id;
00023
00024 };
00025
00026 #endif // UNIQUESTRINGGENERATOR_HH