Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Outputter.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/Outputter.hh
11 /// @brief An outputter can take a PipeMapSP, a PipeSP, or a PoseSP and write it to a file
12 /// @author Ken Jung
13 
14 #ifndef INCLUDED_protocols_outputter_Outputter_hh
15 #define INCLUDED_protocols_outputter_Outputter_hh
16 
17 // Unit Headers
19 
20 // Project headers
23 #include <core/pose/Pose.hh>
24 
25 #include <utility/lua/LuaObject.hh>
26 
27 namespace protocols {
28 namespace outputter {
29 
30 #ifdef USELUA
31 void lregister_Outputter( lua_State * lstate );
32 #endif
33 
34  using namespace core::io::serialization;
35  using core::pose::Pose;
36 
37 class Outputter {
38 
39  public:
40  Outputter();
41  virtual ~Outputter();
42 
43  virtual void write( PipeMap & p )=0;
44  virtual void write( Pipe & p )=0;
45  virtual void write( Pose & p )=0;
46 
47 #ifdef USELUA
48  virtual void parse_def( utility::lua::LuaObject const & def,
49  utility::lua::LuaObject const & tasks ) = 0;
50  virtual void lregister( lua_State * lstate )=0;
51 #endif
52 
53  // factory functions
54  virtual OutputterSP create() = 0;
55  static std::string name() {
56  return "UNDEFINED NAME";
57  }
58 
59 
60 }; // end Outputter base class
61 
62 } // outputter
63 } // protocols
64 
65 
66 #endif //INCLUDED_protocols_outputter_Outputter_hh