summaryrefslogtreecommitdiffstats
path: root/IdManager.h
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2007-09-29 22:03:02 +0200
committerneoraider <devnull@localhost>2007-09-29 22:03:02 +0200
commitea3fc9f27f6feb14ea3b7cfc8b1e921195dd3c3f (patch)
treec53c8477c42c070e9ab5640e051ea3978f38d2dd /IdManager.h
parent38b318a57f0a713eb2aa8407893eea142e57427e (diff)
downloadzoomedit-ea3fc9f27f6feb14ea3b7cfc8b1e921195dd3c3f.tar
zoomedit-ea3fc9f27f6feb14ea3b7cfc8b1e921195dd3c3f.zip
zoomedit: IdManager: Id-Validierung verbessert.
Diffstat (limited to 'IdManager.h')
-rw-r--r--IdManager.h4
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);
};