本文整理汇总了C++中Printer::print_info方法的典型用法代码示例。如果您正苦于以下问题:C++ Printer::print_info方法的具体用法?C++ Printer::print_info怎么用?C++ Printer::print_info使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Printer
的用法示例。
在下文中一共展示了Printer::print_info方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
int main(int argc, char* argv[]) {
if (argc != 2){
printf ("Usage: %s input_file.\n", argv[0]);
exit(1);
}
char info[98];
Parser* Input = new Parser(argv[1]);
Printer* Writer = new Printer(Input);
Engine* RunEngine = new Engine(Writer);
Mol* M1 = new Mol(Input);
sprintf(info, "Reading reference file %s...", Input->reference_file.c_str());
Writer->print_info(info);
M1->read_pdb(Input->reference_file);
Mol* MExtract1 = new Mol(Input);
RunEngine->mol_extraction(M1, MExtract1, Input);
Writer->write_pdb(MExtract1, 0.0, 0.0, "ME1");
vector<string> unique = RunEngine->make_unique(Input->lookup);
sprintf(info, "Searching for matches...");
Writer->print_info(info);
#ifdef HAS_MPI
RunEngine->run_over_mpi(argc, argv, MExtract1, unique, Input);
#else
RunEngine->run_serial(MExtract1, unique, Input);
#endif
unique.clear();
delete RunEngine;
delete MExtract1;
delete M1;
delete Input;
delete Writer;
return EXIT_SUCCESS;
}