Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
util.cc
Go to the documentation of this file.
1 // -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
2 // vi: set ts=2 noet:
3 //
4 // (c) Copyright Rosetta Commons Member Institutions.
5 // (c) This file is part of the Rosetta software suite and is made available under license.
6 // (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
7 // (c) For more information, see http://www.rosettacommons.org. Questions about this can be
8 // (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
9 
10 /// @file protocols/star/util.cc
11 /// @author Christopher Miles (cmiles@uw.edu)
12 
13 // C/C++ headers
14 #include <string>
15 
16 // External headers
17 #include <boost/format.hpp>
18 
19 // Utility headers
20 #include <basic/options/option.hh>
21 #include <basic/options/keys/OptionKeys.hh>
22 #include <basic/options/keys/abinitio.OptionKeys.gen.hh>
23 
24 // Project headers
25 #include <core/types.hh>
31 #include <core/pose/Pose.hh>
33 
34 namespace protocols {
35 namespace star {
36 
37 void emit_intermediate(const core::pose::Pose& pose, const std::string& silent_filename) {
38  using core::Size;
42  using namespace basic::options;
43  using namespace basic::options::OptionKeys;
44 
45  if (!option[OptionKeys::abinitio::debug]()) {
46  return;
47  }
48 
49  static Size num_structures = 0;
50 
52  silent->fill_struct(pose, str(boost::format("model_%d") % ++num_structures));
53 
54  SilentFileData sfd;
55  sfd.write_silent_struct(*silent, silent_filename);
56 }
57 
59  assert(pose);
61 }
62 
64  if (!pose->is_centroid()) {
66  }
67 }
68 
69 } // namespace star
70 } // namespace protocols