All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
LabelLayerService.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 
6 #include "LabelLayer.h"
7 #include "Types.h"
8 
9 namespace Eegeo
10 {
11  namespace Labels
12  {
14  {
15  public:
16  virtual ~ILabelLayerService() {}
17 
18  virtual LabelLayer::IdType Register(const std::string& labelLayerName) = 0;
19 
20  virtual bool FindLabelLayer(const std::string& labelLayerName, LabelLayer::IdType& out_layerId) const = 0;
21 
22  virtual const LabelLayer& Get(const LabelLayer::IdType& labelLayerId) const = 0;
23  };
24 
26  {
27  public:
29  Labels::ILabelLayerRepository& labelLayerRepository);
30 
32 
33  LabelLayer::IdType Register(const std::string& labelLayerName);
34 
35  bool FindLabelLayer(const std::string& labelLayerName, LabelLayer::IdType& out_layerId) const;
36 
37  const LabelLayer& Get(const LabelLayer::IdType& labelLayerId) const;
38  private:
39  Labels::ILabelLayerFactory& m_labelLayerFactory;
40  Labels::ILabelLayerRepository& m_labelLayerRepository;
41  };
42  }
43 }