Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SilentFileOutputter.hh
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=1 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/SilentFileOutputter.hh
11 /// @brief An outputter can take a PipeMapSP, a PipeSP, or a PoseSP and write it to a silent file( or many! )
12 /// @author Ken Jung
13 
14 #ifndef INCLUDED_protocols_outputter_SilentFileOutputter_hh
15 #define INCLUDED_protocols_outputter_SilentFileOutputter_hh
16 
17 // Unit Headers
20 
22 
23 namespace protocols {
24 namespace outputter {
25 
26 #ifdef USELUA
27  void lregister_SilentFileOutputter( lua_State * lstate );
28 #endif
29 
30  using namespace core::io::serialization;
31  using core::pose::PoseSP;
32 
34 
35  public:
37  virtual ~SilentFileOutputter();
38 
39  virtual void write( Pose & p );
40 
41  bool score_only() { return score_only_; }
42  void score_only(bool b) { score_only_ = b; }
43 
44  std::string tag_format_string() { return tag_format_string_; }
45  void tag_format_string( std::string s ) { tag_format_string_ = s; }
46 
47 #ifdef USELUA
48  void parse_def( utility::lua::LuaObject const & def,
49  utility::lua::LuaObject const & tasks );
50  virtual void lregister( lua_State * lstate );
51 #endif
52 
53  // factory functions
54  OutputterSP create();
55  static std::string name() {
56  return "SilentFileOutputter";
57  }
58 
59  protected:
62  bool binary_;
64 
65 }; // end
66 
67 } // outputter
68 } // protocols
69 
70 
71 #endif //INCLUDED_protocols_outputter_SilentFileOutputter_hh