1 #include <creaImageIOGimmick.h>
2 #include <creaMessageManager.h>
3 #include <gimmick_ggo.h>
6 int main(int argc, char* argv[])
9 gengetopt_args_info args;
10 if (cmdline_parser (argc, argv, &args) != 0) return 0 ;
12 creaImageIO::Gimmick g;
13 if (args.verbose_given) g.SetMessageLevel(args.verbose_arg);
14 if (args.debug_given) g.SetDebugMessageLevel(args.debug_arg);
16 bool something_to_do =
23 std::cout << "Nothing to do !" << std::endl;
27 std::string handler("Local database");
34 std::vector<std::string> files;
35 // TO DO : multiple files given
36 files.push_back(args.file_arg);
37 g.AddFiles(handler,files);
41 g.AddDir(handler,args.dir_arg, args.recurse_given);
46 g.GetTreeHandler(handler)->LoadChildren(0,0);
52 catch (crea::Exception e)