All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
RouteViewFactoryRepository.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 #include "Types.h"
6 #include "Routes.h"
7 #include "RouteStyle.h"
8 #include <map>
9 #include <vector>
10 
11 namespace Eegeo
12 {
13  namespace Routes
14  {
15  namespace View
16  {
18  {
19  private:
20  std::map<const Route*, IRouteViewFactory*> m_routeViewFactoryMap;
21 
22  public:
23  void AddRouteViewFactoryMapping(const Route* pRoute, IRouteViewFactory* pViewFactory);
24  void RemoveRouteViewFactoryMapping(const Route* pRoute);
25 
26  bool HasViewFactoryForRoute(const Route* route) const;
27  IRouteViewFactory* GetViewFactoryForRoute(const Route* route) const;
28  bool IsEmpty() const;
29  };
30  }
31  }
32 }