Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ReportFilter.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 protocols/simple_filters/ReportFilter.hh
11 /// @brief Simple filter that tests whether a file exists. Useful to test whether we're recovering from a checkpoint
12 /// @author Sarel Fleishman
13 
14 #ifndef INCLUDED_protocols_simple_filters_ReportFilter_hh
15 #define INCLUDED_protocols_simple_filters_ReportFilter_hh
16 
17 //unit headers
19 
20 // Project Headers
22 #include <core/types.hh>
24 #include <core/pose/Pose.fwd.hh>
28 
29 namespace protocols {
30 namespace simple_filters {
31 
33 {
34 public:
35  //default ctor
36  ReportFilter();
37  bool apply( core::pose::Pose const & pose ) const;
39  return new ReportFilter( *this );
40  }
42  return new ReportFilter();
43  }
44 
45  void report( std::ostream & out, core::pose::Pose const & pose ) const;
46  core::Real report_sm( core::pose::Pose const & pose ) const;
47  core::Real compute( core::pose::Pose const &pose ) const;
48  virtual ~ReportFilter();
50 
51  void report_string( std::string const s );
52  std::string report_string() const;
53 
57 private:
59  protocols::filters::FilterOP filter_; //dflt NULL; either filter or report_string should be turned on
60  std::string report_filter_name_; // the user defined filter name used in reporting
61 };
62 
63 }
64 }
65 
66 #endif