diff options
author | neoraider <devnull@localhost> | 2007-09-29 22:03:02 +0200 |
---|---|---|
committer | neoraider <devnull@localhost> | 2007-09-29 22:03:02 +0200 |
commit | ea3fc9f27f6feb14ea3b7cfc8b1e921195dd3c3f (patch) | |
tree | c53c8477c42c070e9ab5640e051ea3978f38d2dd /IdManager.h | |
parent | 38b318a57f0a713eb2aa8407893eea142e57427e (diff) | |
download | zoomedit-ea3fc9f27f6feb14ea3b7cfc8b1e921195dd3c3f.tar zoomedit-ea3fc9f27f6feb14ea3b7cfc8b1e921195dd3c3f.zip |
zoomedit: IdManager: Id-Validierung verbessert.
Diffstat (limited to 'IdManager.h')
-rw-r--r-- | IdManager.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/IdManager.h b/IdManager.h index bc3efb7..8f846a9 100644 --- a/IdManager.h +++ b/IdManager.h @@ -11,12 +11,14 @@ class IdManager { 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; - bool unique(const std::string &id) const; std::string generate(const std::string &prefix); }; |