Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RawStruct.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 // :noTabs=false:tabSize=4:indentSize=4:
4 //
5 // (c) Copyright Rosetta Commons Member Institutions.
6 // (c) This file is part of the Rosetta software suite and is made available under license.
7 // (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
8 // (c) For more information, see http://www.rosettacommons.org. Questions about this can be
9 // (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
10 
11 /// @file core/io/raw_data/RawStruct.hh
12 ///
13 /// @brief Struct base class
14 /// @author James Thompson, Monica Berrondo
15 
16 #ifndef INCLUDED_core_io_raw_data_RawStruct_hh
17 #define INCLUDED_core_io_raw_data_RawStruct_hh
18 
19 // mini headers
20 #include <core/types.hh>
21 #include <core/pose/Pose.fwd.hh>
22 
23 // AUTO-REMOVED #include <core/io/raw_data/Raw.fwd.hh>
24 
26 // AUTO-REMOVED #include <basic/Tracer.hh>
27 
28 #include <utility/pointer/ReferenceCount.hh>
29 
30 // C++ Headers
31 // AUTO-REMOVED #include <string>
32 
33 #include <utility/vector1.hh>
34 #include <map>
35 #include <ostream>
36 
37 
38 namespace core {
39 namespace io {
40 namespace raw_data {
41 
42  /////////////////////////////////////////////////////////////////////////////
43  // holds all the data for a single entry in a silent file
45 
46  public:
47  // destructor
48  virtual ~RawStruct();
49 
50  /// @brief Fill a Pose with the conformation information in this RawStruct and the FA_STANDARD
51  /// ResidueTypeSet. This is a virtual method which must be implemented by classes derived from RawStruct.
52  virtual void fill_pose(
53  core::pose::Pose & pose
54  ) = 0;
55 
56  /// @brief Fill a Pose with the conformation information in this RawStruct and the ResidueTypeSet
57  /// provided by the caller. This is a virtual method which must be implemented by classes derived from RawStruct.
58  virtual void fill_pose(
59  core::pose::Pose & pose,
60  core::chemical::ResidueTypeSet const& residue_set
61  ) = 0;
62 
63  /// @brief Do some sort of comparison between the actual RMSD of this silent-struct and
64  /// the cached coordinates. Used for RawStruct objects that are rebuild from torsions
65  /// or other shortened representations of data.
66  virtual Real get_debug_rmsd();
67 
68  /// @brief print out a header line to the given ozstream. In a rosetta++ silent-file, this contained the lines
69  /// SEQUENCE: <protein sequence>\nSCORE: <list of score-types>.
70  void print_header ( std::ostream& out, std::map < std::string, core::Real > const & score_map,
71  std::map < std::string, std::string > const & string_map = ( std::map < std::string, std::string > () ),
72  bool print_sequence = true ) const;
73  /// @brief print out a SCORE line to the given ozstream.
74  void print_scores ( std::ostream& out, std::map < std::string, core::Real > const & score_map,
75  std::map < std::string, std::string > const & string_map = ( std::map < std::string, std::string > () ) ) const;
76  virtual void print_conformation( std::ostream& out ) const;
77 
78  /// @brief data access methods.
79  Size nres() {
80  return nres_;
81  }
82 
83  /// @brief returns the tag associated with this RawStruct
85  return decoy_tag_;
86  }
87 
88  /// @brief returns the sequence for this RawStruct
90  return sequence_;
91  }
92 
93  /// @brief returns the number of residues in this RawStruct
94  void nres( Size nres ) {
95  nres_ = nres;
96  }
97 
98  /// @brief sets the tag associated with this RawStruct
99  void decoy_tag( std::string tag ) {
100  decoy_tag_ = tag;
101  }
102 
103  /// @brief sets the sequence for this RawStruct
106  }
107 
108  protected:
112 
113 }; // class RawStruct
114 
115 } // namespace silent
116 } // namespace io
117 } // namespace core
118 
119 #endif