1 #ifndef INTERPOLATIONTYPE_HPP_INCLUDED
2 #define INTERPOLATIONTYPE_HPP_INCLUDED
10 namespace InterpolationType {
13 enum InterpolationType {
31 inline std::string
toString(InterpolationType
const& type) {
35 case NearestNeighbour:
36 ss <<
"NearestNeighbour";
66 ss <<
"FirstQuartile";
69 ss <<
"ThirdQuartile";
79 inline InterpolationType
fromString(std::string
const& str) {
81 InterpolationType list[] = {
97 int len =
sizeof(list)/
sizeof(InterpolationType);
98 for (
int i = 0; i < len; i++) {
99 InterpolationType item = list[i];
114 #endif //INTERPOLATIONTYPE_HPP_INCLUDED
BooleanOperator fromString(const std::string &string)
Restituisce il valore di un operatore booleano data una stringa che rappresenta il valore dell'operat...
Definition: BooleanOperator.hpp:88
std::string toString(const BooleanOperator &booleanOperator)
Restituisce la stringa che rappresenta il valore di un operatore booleano dato il valore di un operat...
Definition: BooleanOperator.hpp:40