All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
BuildingFootprintSelectionModel.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 #include "BuildingFootprints.h"
6 #include "BuildingFootprint.h"
7 #include "Types.h"
8 #include <string>
9 
10 namespace Eegeo
11 {
12  namespace BuildingFootprints
13  {
15  {
16  public:
17  typedef std::string ModelId;
18 
19  BuildingFootprintSelectionModel(const ModelId& modelId, const std::vector<BuildingFootprint>& footprints)
20  : m_modelId(modelId)
21  , m_footprints(footprints)
22  , m_flashing(false)
23  {}
24 
25  ModelId GetId() const { return m_modelId; }
26  std::vector<BuildingFootprint> GetFootprints() const { return m_footprints; }
27  bool IsFlashing() const { return m_flashing; }
28  void SetFlashing(bool enabled) { m_flashing = enabled; }
29  private:
30  const std::string m_modelId;
31  const std::vector<BuildingFootprint> m_footprints;
32  bool m_flashing;
33  };
34  }
35 }