/* * UIFactory.cpp * * Created on: Jan 5, 2010 * Author: crueger */ #include #include "Patterns/Singleton_impl.hpp" #include "UIElements/UIFactory.hpp" // all factories that can be used: #include "UIElements/TextUIFactory.hpp" UIFactory::UIFactory() { // TODO Auto-generated constructor stub } UIFactory::~UIFactory() { // TODO Auto-generated destructor stub } void UIFactory::makeUserInterface(InterfaceTypes type) { switch(type) { case Text : setInstance(new TextUIFactory()); break; default: assert(0 && "No such Factory in stock"); break; } } CONSTRUCT_SINGLETON(UIFactory)