Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PDBOutputter.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/outputter/PDBOutputter.cc
11 /// @brief An outputter can take a PipeMapSP, a PipeSP, or a PoseSP and write it to a pdb
12 /// @author Ken Jung
13 
14 // Unit Headers
16 
17 // tracer
18 #include <basic/Tracer.hh>
19 
20 namespace protocols {
21 namespace outputter {
22 
23 static basic::Tracer TR("protocols.outputter.PDBOutputter");
24 
25 #ifdef USELUA
26 void lregister_PDBOutputter( lua_State * lstate ) {
27  lregister_FormatStringOutputter( lstate );
28  luabind::module(lstate, "protocols")
29  [
30  luabind::namespace_("outputter")
31  [
32  luabind::class_<PDBOutputter, FormatStringOutputter>("PDBOutputter")
33  ]
34  ];
35 }
36 #endif
37 
41  return OutputterSP( new PDBOutputter () );
42 }
43 
45  std::string outfilename;
47  p.dump_pdb( outfilename );
48 }
49 
50 #ifdef USELUA
51 void PDBOutputter::lregister( lua_State * lstate ) {
52  lregister_PDBOutputter( lstate );
53 }
54 #endif
55 
56 } // outputter
57 } // protocols