| 94 |
|
if (cmdline_parser (argc, argv, &args_info) != 0) |
| 95 |
|
exit(1) ; |
| 96 |
|
|
| 97 |
< |
if (args_info.input_given){ |
| 98 |
< |
fileName = args_info.input_arg; |
| 99 |
< |
} |
| 100 |
< |
else{ |
| 97 |
> |
|
| 98 |
> |
if (args_info.inputs_num > 0) { |
| 99 |
> |
fileName = args_info.inputs[0]; |
| 100 |
> |
} else { |
| 101 |
|
std::cerr << "Does not have input file name" << endl; |
| 102 |
|
exit(1); |
| 103 |
|
} |
| 223 |
|
strcpy(structureFileName, fileName.c_str() ); |
| 224 |
|
|
| 225 |
|
PDBReader* PDBread = new PDBReader(); |
| 226 |
< |
PDBread->setPDBfile(structureFileName); |
| 226 |
> |
PDBread->setPDBfileName(structureFileName); |
| 227 |
|
theAtoms = PDBread->getAtomList(); |
| 228 |
|
printf("Found %d atoms\n", theAtoms.size()); |
| 229 |
|
|