All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
LabelResourceFontBinding.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 #include "Labels.h"
6 #include "Types.h"
7 
8 #include <string>
9 
10 
11 namespace Eegeo
12 {
13  namespace Labels
14  {
16  {
17  public:
18  static inline LabelResourceFontBinding* Create(const std::string& labelResourceType, const std::string& fontName);
19 
20  const std::string& GetLabelResourceType() const { return m_labelResourceType; }
21 
22  const std::string& GetFontName() const { return m_fontName; }
23 
24  private:
25  LabelResourceFontBinding(const std::string& labelResourceType, const std::string& fontName)
26  : m_labelResourceType(labelResourceType)
27  , m_fontName(fontName)
28  {}
29 
30  std::string m_labelResourceType;
31  std::string m_fontName;
32  };
33 
34  inline LabelResourceFontBinding* LabelResourceFontBinding::Create(const std::string& labelResourceType, const std::string& fontName)
35  {
36  return Eegeo_NEW(LabelResourceFontBinding)(labelResourceType, fontName);
37  }
38 
39  }
40 }
41