#include <view_factory.h>
Public Member Functions | |
ViewFactory () | |
virtual | ~ViewFactory () |
view_pointer_type | getView (view_type requested_view) |
template<class ViewType> | |
void | registerViewType (view_type key) |
Protected Types | |
typedef view_pointer_type(* | creatorFunctionType )() |
typedef std::map< view_type, creatorFunctionType > | view_map_type |
Protected Attributes | |
view_map_type | view_map_ |
Christian Koerner (christian.koerner@imedgine.org)
Alexander Lex (alexander.lex@imedgine.org)
Marc Streit (marc.streit@imedgine.org)
Martin Reininger (martin.reininger@imedgine.org)
Definition at line 44 of file view_factory.h.
|
Constructor Definition at line 20 of file view_factory.cpp. |
|
Destructor Definition at line 26 of file view_factory.cpp. |
|
Returns a new instance of the requested view type or 0 if no type with that key was registered.
Definition at line 32 of file view_factory.cpp. References ViewFactory::view_map_. |
|
Associates the new view type with the given key. Subsequent calls to getView with this key will return newly created views of the registered concrete view type.
Definition at line 78 of file view_factory.h. References ViewFactory::view_map_. Referenced by DataViewMediator::DataViewMediator(). |
|
The mapping between view keys and creational functions that are templated with the type of View to create Definition at line 92 of file view_factory.h. Referenced by ViewFactory::getView(), and ViewFactory::registerViewType(). |