From ea3fc9f27f6feb14ea3b7cfc8b1e921195dd3c3f Mon Sep 17 00:00:00 2001 From: neoraider Date: Sat, 29 Sep 2007 20:03:02 +0000 Subject: zoomedit: IdManager: Id-Validierung verbessert. --- IdManager.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'IdManager.h') 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 usedIds; std::map 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); }; -- cgit v1.2.3