Changeset 4fc41a for molecuilder/src/UIElements/UIFactory.hpp
- Timestamp:
- Mar 11, 2010, 10:37:32 AM (15 years ago)
- Children:
- ff1812
- Parents:
- 4c60ef
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/UIElements/UIFactory.hpp
r4c60ef r4fc41a 17 17 18 18 struct menuPopulaters; 19 20 #include "Patterns/Singleton.hpp" 21 19 22 /** 20 23 * Abstract Factory to create any kind of User interface object needed by the programm. … … 24 27 * UIs can be handled in a concise abstract way. 25 28 */ 26 class UIFactory 29 class UIFactory : public Singleton<UIFactory,false> 27 30 { 28 31 … … 45 48 UIFactory(); 46 49 47 // singleton stuff48 private:49 static UIFactory *theFactory;50 51 50 public: 52 51 /** … … 55 54 static void makeUserInterface(InterfaceTypes type); 56 55 57 /**58 * get the previously created factory59 */60 static UIFactory* get();61 62 /**63 * Destroy the created factory.64 *65 * Make sure that all UIElements that were created by the factory are destroyed before calling this method.66 */67 static void purgeInstance();68 56 }; 69 57
Note:
See TracChangeset
for help on using the changeset viewer.