Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ParserJobInputter.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/jd2/PDBJobInputter.cc
11 /// @brief August 2008 job distributor as planned at RosettaCon08 - Base class PDBJobInputter
12 /// @author Steven Lewis smlewi@gmail.com
13 
14 ///Unit headers
18 #include <protocols/jd2/Job.hh>
19 
20 ///Project headers
21 // AUTO-REMOVED #include <core/pose/Pose.hh>
22 
23 #ifdef WIN32
24 // required for VS2005 build
26 #endif
27 
28 ///Utility headers
29 #include <basic/Tracer.hh>
30 
31 ///C++ headers
32 #include <string>
33 
34 // option key includes
35 
36 #include <utility/vector1.hh>
37 
38 
39 static basic::Tracer TR("protocols.protein_interface_design.ParserJobInputter");
40 
41 namespace protocols {
42 namespace protein_interface_design {
43 
44 using namespace protocols::jd2;
45 
47  TR << "Instantiate ParserJobInputter" << std::endl;
48 }
49 
51 }
52 
53 ///@details This function will first see if the pose already exists in the Job. If not, it will read it into the pose reference, and hand a COP cloned from that pose to the Job. If the pose pre-exists it just copies the COP's pose into it.
54 void
57 
58  TR << "ParserJobInputter::pose_from_job" << std::endl;
59 
60 /// normally the job would contain the saved pose, but here, the saved pose
61 /// would be transformed according to patchdock reading. So, we're letting
62 /// the static patchdock reader take care of saving the pose in memory
63 
64  std::string input_tag( job->input_tag() );
65  pd_reader.read_poses( pose, input_tag );
66  load_pose_into_job(pose, job);
67 }
68 
69 //CREATOR SECTION
72 {
73  return "ParserJobInputter";
74 }
75 
78  return new ParserJobInputter;
79 }
80 
81 }//protein_interface_design
82 }//protocols