fw4spl
StructureTraitsHelper.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2015.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 #ifndef __FWDATA_STRUCTURETRAITSHELPER_HPP__
8 #define __FWDATA_STRUCTURETRAITSHELPER_HPP__
9 
10 #include "fwData/config.hpp"
11 #include "fwData/StructureTraits.hpp"
12 
13 #include <boost/bimap/bimap.hpp>
14 
15 namespace fwData
16 {
17 
21 class FWDATA_CLASS_API StructureTraitsHelper
22 {
23 
24 public:
25 
26  typedef ::boost::bimaps::bimap< ::fwData::StructureTraits::StructureClass, std::string > ClassTranslatorType;
28  FWDATA_API static const ClassTranslatorType s_CLASSTRANSLATOR;
29 
30  typedef ::boost::bimaps::bimap< ::fwData::StructureTraits::Category, std::string > CategoryTranslatorType;
32  FWDATA_API static const CategoryTranslatorType s_CATEGORYTRANSLATOR;
33 
34 };
35 
36 } // namespace fwData
37 
38 #endif // __FWDATA_STRUCTURETRAITSHELPER_HPP__
39 
This class defines some helper for the structure traits.
static FWDATA_API const ClassTranslatorType s_CLASSTRANSLATOR
Map to translate structure class (string vs enum)
static FWDATA_API const CategoryTranslatorType s_CATEGORYTRANSLATOR
Map to translate structure categories (string vs enum)
Contains the representation of the data objects used in the framework.