All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
InteriorsHighlightKey.h
1 // Copyright eeGeo Ltd (2012-2017), All Rights Reserved
2 
3 #pragma once
4 #include <string>
5 
6 namespace Eegeo
7 {
8  namespace Resources
9  {
10  namespace Interiors
11  {
12  namespace Highlights
13  {
15  {
16  public:
17  // highlights can remain in the repository after their source has been deleted, so create keys from values
18  InteriorsHighlightKey(std::string interiorId, std::string entityId)
19  : m_highlightKey(std::pair<std::string, std::string>(interiorId, entityId))
20  {
21  }
22 
23  std::string GetInteriorId() const { return m_highlightKey.first; }
24  std::string GetEntityId() const { return m_highlightKey.second; }
25 
26  bool operator < (const InteriorsHighlightKey& other) const { return m_highlightKey < other.m_highlightKey; }
27  private:
28  const std::pair <std::string, std::string> m_highlightKey;
29  };
30  }
31  }
32  }
33 }