Go to the documentation of this file.00001
00002
00003
00004
00005
00008
00009 #ifndef lgrGuiObjectManager_H_
00010 #define lgrGuiObjectManager_H_
00011
00012 #include "lgrGui.h"
00013
00014
00015 #include <Qt3Support/Q3Dict>
00016
00017 namespace MAKLogger
00018 {
00019
00021 template <typename ObjectType>
00022 class DtLgrGuiObjectManager
00023 {
00024 public:
00025
00026 DtLgrGuiObjectManager();
00027
00028 virtual ~DtLgrGuiObjectManager();
00029
00034 virtual bool addObject(QString objectName,ObjectType*);
00035 virtual bool removeObject(QString objectName);
00036
00037 virtual ObjectType* findObject(QString objectName);
00038 virtual ObjectType* releaseObject(QString objectName);
00039
00041 virtual void clear();
00042
00043 protected:
00044 Q3Dict<ObjectType> myObjectMap;
00045
00046 };
00047 }
00048
00049 #define lgrGuiObjectManager_INC
00050 #include "lgrGuiObjectManager.inl"
00051 #undef lgrGuiObjectManager_INC
00052
00053 #endif
00054