00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef GCU_DOCUMENT_H
00029 #define GCU_DOCUMENT_H
00030
00031 #include "object.h"
00032
00033 using namespace std;
00034
00035 namespace gcu
00036 {
00040 class Document: public Object
00041 {
00042 friend class gcu::Object;
00043 public:
00047 Document ();
00051 virtual ~Document ();
00052
00053 public:
00054
00062 string& GetTranslatedId (const char* id) {return m_TranslationTable[id];}
00063
00070 void EraseTranslationId (const char* Id) {m_TranslationTable.erase (Id);}
00071
00077 void EmptyTranslationTable() {m_TranslationTable.clear();}
00078
00079 private:
00080
00090 gchar* GetNewId (gchar* id, bool Cache = true);
00091
00092 private:
00093 map <string, string> m_TranslationTable;
00094 };
00095
00096 }
00097 #endif //GCU_DOCUMENT_H