00001 // $Header $
00002
00003 #ifndef IDDICTMAN_H
00004 #define IDDICTMAN_H
00005
00006 #include <vector>
00007 #include <string>
00008 namespace xmlUtil {
00009 class IdDict;
00010
00011 class IdDictMan {
00012 public:
00013 enum RetCode {
00014 FAIL = 0,
00015 SUCCESS = 1,
00016 NOTFOUND = 2,
00017 DUPLICATE = 3
00018 };
00019 static IdDictMan * IdDictMan::getPointer();
00020
00021 IdDict * findDict(std::string name);
00022
00023 RetCode registerDict(IdDict *dict);
00024
00025 RetCode removeDict(std::string name);
00026
00027 protected:
00028 IdDictMan() {}
00029
00030 std::vector<IdDict *> dictDir;
00031 static IdDictMan *me;
00032
00033 };
00034 }
00035 #endif
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001