All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
TrafficCongestionConfig.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 #include "Types.h"
6 #include "TrafficCongestionLevel.h"
7 #include <map>
8 
9 namespace Eegeo
10 {
11  namespace TrafficCongestion
12  {
14  {
15  float SpeedMultiplier;
16  float VehicleSpacing;
17 
19  float speedMultiplier,
20  float vehicleSpacing)
21  :
22  SpeedMultiplier(speedMultiplier),
23  VehicleSpacing(vehicleSpacing)
24  {
25 
26  }
27  };
28 
30  {
31  public:
34 
35  const CongestionSettings & GetSettingsForLevel(CongestionLevel::CongestionLevelValues level) const;
36 
37  private:
38  typedef std::map<CongestionLevel::CongestionLevelValues, CongestionSettings *> TCongestionLevelToConfig;
39  TCongestionLevelToConfig m_levelToConfiguration;
40  };
41  }
42 }