primatologist-gpl  5.1.2
type.h
Go to the documentation of this file.
1 /* Copyright (C) 2000-2013 CEA
2  *
3  * This software and supporting documentation were developed by
4  * bioPICSEL
5  * CEA/DSV/I²BM/MIRCen/LMN, Batiment 61,
6  * 18, route du Panorama
7  * 92265 Fontenay-aux-Roses
8  * France
9  */
10 
11 #ifndef PRIMATOLOGIST_UTILITY_TYPE_H
12 #define PRIMATOLOGIST_UTILITY_TYPE_H
13 
14 #include <string>
15 
16 //----------------------------------------------------------------------------
17 // type
18 //----------------------------------------------------------------------------
19 
20 namespace aims {
21 namespace type {
22 
23  template <typename T>
24  struct identity { typedef T type; };
25 
26 } // namespace type
27 
28 
29  template <typename T>
30  struct EnumInfo
31  {
32  static std::string type() { return ""; }
33  static std::string value( const T & v ) { return ""; }
34  };
35 
36 
37 } // namespace aims
38 
39 #endif // PRIMATOLOGIST_UTILITY_TYPE_H
static std::string type()
Definition: type.h:32
static std::string value(const T &v)
Definition: type.h:33