CMS 3D CMS Logo

CmsMTDStringToEnum.h
Go to the documentation of this file.
1 #ifndef Geometry_MTDNumberingBuilder_CmsMTDStringToEnum_H
2 #define Geometry_MTDNumberingBuilder_CmsMTDStringToEnum_H
3 
5 #include <string>
6 #include <map>
11  public:
12  typedef std::map<std::string, GeometricTimingDet::GeometricTimingEnumType> MapEnumType;
13  typedef std::map<GeometricTimingDet::GeometricTimingEnumType, std::string> ReverseMapEnumType;
14 
17 
18  private:
19  static MapEnumType const & map() { return m_impl._map;}
20  static ReverseMapEnumType const & reverseMap() { return m_impl._reverseMap;}
21 
22  // a quick fix
23  struct Impl {
24  Impl();
25  MapEnumType _map;
26  ReverseMapEnumType _reverseMap;
27  };
28 
29  static const Impl m_impl;
30 
31 };
32 #endif
GeometricTimingDet::GeometricTimingEnumType type(std::string const &) const
static ReverseMapEnumType const & reverseMap()
static const Impl m_impl
ReverseMapEnumType _reverseMap
std::string const & name(GeometricTimingDet::GeometricTimingEnumType) const
Definition: __init__.py:1
std::map< GeometricTimingDet::GeometricTimingEnumType, std::string > ReverseMapEnumType
static MapEnumType const & map()
enum GeometricTimingDet::GTDEnumType GeometricTimingEnumType
std::map< std::string, GeometricTimingDet::GeometricTimingEnumType > MapEnumType