1 #include <boost/program_options.hpp>
6 namespace po = boost::program_options;
25 ::std::cout << *
options << ::std::endl;
29 cout << e.what() << endl;
34 string device =
options->getInputDevice();
35 if(device.find_first_not_of(
"0123456789") == std::string::npos)
41 return std::cout << std::endl <<
"Kinfu is not supported for pre-Fermi GPU architectures, and not built for them by default. Exiting..." << std::endl, 1;
42 capture.
open(atoi(device.c_str()));
54 catch (
const std::bad_alloc& ) { std::cout <<
"Bad alloc" << std::endl; }
55 catch (
const std::exception& ) { std::cout <<
"Exception" << std::endl; }