Changes in src/UIElements/UIFactory.hpp [d7940e:dbb474]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/UIFactory.hpp
rd7940e rdbb474 17 17 18 18 struct menuPopulaters; 19 20 #include "Patterns/Singleton.hpp"21 22 19 /** 23 20 * Abstract Factory to create any kind of User interface object needed by the programm. … … 27 24 * UIs can be handled in a concise abstract way. 28 25 */ 29 class UIFactory : public Singleton<UIFactory,false>26 class UIFactory 30 27 { 31 28 … … 48 45 UIFactory(); 49 46 47 // singleton stuff 48 private: 49 static UIFactory *theFactory; 50 50 51 public: 51 52 /** … … 54 55 static void makeUserInterface(InterfaceTypes type); 55 56 57 /** 58 * get the previously created factory 59 */ 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(); 56 68 }; 57 69
Note:
See TracChangeset
for help on using the changeset viewer.