| 18 | #include <mitkArithmeticOperation.h> |
| 19 | |
| 20 | static bool ConvertToBool(std::map<std::string, us::Any> &data, std::string name) |
| 21 | { |
| 22 | if (!data.count(name)) |
| 23 | { |
| 24 | return false; |
| 25 | } |
| 26 | try { |
| 27 | return us::any_cast<bool>(data[name]); |
| 28 | } |
| 29 | catch ( const us::BadAnyCastException & ) |
| 30 | { |
| 31 | return false; |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | |
| 36 | int main(int argc, char* argv[]) |