diff options
author | neoraider <devnull@localhost> | 2008-04-06 15:29:03 +0200 |
---|---|---|
committer | neoraider <devnull@localhost> | 2008-04-06 15:29:03 +0200 |
commit | 356efaf89afdad141b313767e1a2b89de3c08d0a (patch) | |
tree | 37edb2a0fc0ea15f4f60e45ed411cbea7b4c12c5 /IdManager.h | |
parent | 258eb984bafe0f667d1e76de61c8afaa23f39ef4 (diff) | |
download | zoomedit-356efaf89afdad141b313767e1a2b89de3c08d0a.tar zoomedit-356efaf89afdad141b313767e1a2b89de3c08d0a.zip |
zoomedit: Recreated ZoomEdit based on Glademm.
Diffstat (limited to 'IdManager.h')
-rw-r--r-- | IdManager.h | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/IdManager.h b/IdManager.h deleted file mode 100644 index 8f846a9..0000000 --- a/IdManager.h +++ /dev/null @@ -1,26 +0,0 @@ -#ifndef IDMANAGER_H_ -#define IDMANAGER_H_ - -#include <string> -#include <set> -#include <map> - - -class IdManager { - private: - std::set<std::string> usedIds; - std::map<std::string, unsigned long> prefixMap; - - bool isValid(const std::string &id) const; - bool unique(const std::string &id) const; - - public: - bool add(const std::string &id); - bool remove(const std::string &id); - - bool valid(const std::string &id) const; - - std::string generate(const std::string &prefix); -}; - -#endif /*IDMANAGER_H_*/ |