Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SilentFilePoseInputStream.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=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 src/core/import_pose/pose_stream/SilentFilePoseInputStream.hh
11 /// @brief
12 /// @author James Thompson
13 
14 #ifndef INCLUDED_core_import_pose_pose_stream_SilentFilePoseInputStream_HH
15 #define INCLUDED_core_import_pose_pose_stream_SilentFilePoseInputStream_HH
16 
19 
20 #include <core/types.hh>
21 #include <core/pose/Pose.fwd.hh>
26 #include <utility/file/FileName.hh>
27 
28 #include <string>
29 
30 #include <utility/vector1.hh>
31 
32 
33 namespace core {
34 namespace import_pose {
35 namespace pose_stream {
36 
37 
39 
42 
43 // constructors
44 public:
46  : renumber_decoys_( false ), energy_cut_( 1.0 ), order_by_energy_( false ), record_source_( false )
47  {
48  // utility::vector1< FileName > empty;
49  // filenames(empty);
51  }
52 
54  : renumber_decoys_( false ), energy_cut_( 1.0 ), order_by_energy_( false ), record_source_( false )
55  {
57  filenames(fns);
58  }
59 
61  : renumber_decoys_( false ), energy_cut_( 1.0 ), order_by_energy_( false ), record_source_( false )
62  {
65  fns.push_back( fn );
66  filenames(fns);
67  }
68 
71  bool order_by_energy
72  )
73  : renumber_decoys_( false ), energy_cut_( 1.0 ), order_by_energy_( order_by_energy ), record_source_( false )
74  {
76  filenames(fns);
77  }
78 
82  )
83  : renumber_decoys_( false ), energy_cut_( energy_cut ), order_by_energy_( false ), record_source_( false )
84  {
86  filenames(fns);
87  }
88 
92  ) :
93  renumber_decoys_( false ), energy_cut_( 1.0 ), order_by_energy_( false ), record_source_( false )
94  {
96  tags(input_tags);
97  filenames(fns);
98  }
99 
102  utility::vector1< string > input_tags,
104  ) :
105  renumber_decoys_( false ), energy_cut_( energy_cut ), order_by_energy_( false ), record_source_( false )
106  {
108  tags(input_tags);
109  filenames(fns);
110  }
111 
112  void
114 
115  void
116  set_record_source( bool const & setting );
117 
119 
120 public: // methods specific to SilentFilePoseInputStream class
121  void renumber_decoys( bool const setting );
124 
125  core::Real energy_cut() const;
126  bool renumber_decoys() const;
129 
130  void set_order_by_energy( bool const & setting );
131 
132 public: // class-wide methods
133  virtual bool has_another_pose();
134 
135  virtual void reset();
136 
137  virtual void fill_pose(
138  core::pose::Pose & pose,
139  core::chemical::ResidueTypeSet const & residue_set
140  );
141  virtual void fill_pose( core::pose::Pose& );
142 
144 
145 private:
154 
155  void read_all_files_();
156 }; // SilentFilePoseInputStream
157 
158 } // pose_stream
159 } // import_pose
160 } // core
161 
162 #endif