bioprocessing  5.0.5
scalarfeature.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1999-2001 CEA
3  *
4  * This software and supporting documentation were developed by
5  * CEA/DSV/SHFJ
6  * 4 place du General Leclerc
7  * 91401 Orsay cedex
8  * France
9  *
10  */
11 
12 #ifndef BIOPROCESSING_DATA_SCALARFEATURE_H
13 #define BIOPROCESSING_DATA_SCALARFEATURE_H
14 
15 #include <aims/data/data.h>
16 #include <map>
17 #include <string>
18 #include <vector>
19 
20 namespace bioprocessing {
21 
22  // Declaration
24  enum Code {
64  // LABEL_ANGLE,
78  };
79  };
80 
81  typedef std::map<ScalarFeatureType::Code, std::string> ScalarFeatureMap;
82  ScalarFeatureMap scalarfeaturemap();
83  std::vector<std::string> scalarfeaturenames();
84 
85  template<ScalarFeatureType::Code FeatureType>
86  class ScalarFeature {
87  public:
88  static const std::string name() {
89  return scalarfeaturemap()[ FeatureType ];
90  }
91  };
92 
93 }
94 
95 #endif
static const std::string name()
Definition: scalarfeature.h:88
std::vector< std::string > scalarfeaturenames()
ScalarFeatureMap scalarfeaturemap()
std::map< ScalarFeatureType::Code, std::string > ScalarFeatureMap
Definition: scalarfeature.h:81