MCPcopy Create free account
hub / github.com/MITK/MITK / ConvertToBool

Function ConvertToBool

Modules/BasicImageProcessing/MiniApps/SingleImageArithmetic.cpp:20–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18#include <mitkArithmeticOperation.h>
19
20static 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
36int main(int argc, char* argv[])

Callers 1

mainFunction · 0.70

Calls 1

countMethod · 0.80

Tested by

no test coverage detected