Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Anchor.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/AnchoredDesign/Anchor.hh
11 /// @brief header for Anchor
12 /// @author Steven Lewis
13 
14 #ifndef INCLUDED_protocols_anchored_design_Anchor_hh
15 #define INCLUDED_protocols_anchored_design_Anchor_hh
16 
17 // Unit Headers
19 
20 // Project Headers
21 #include <core/pose/Pose.fwd.hh>
22 
23 // Utility Headers
24 #include <core/types.hh>
25 #include <utility/pointer/ReferenceCount.hh>
26 
27 // C++ Headers
28 #include <string>
29 
30 #include <utility/vector1.hh>
31 
32 
33 namespace protocols{
34 namespace anchored_design{
35 
36 ///@brief Anchor class provides for the "anchor" part of a scaffold in anchored interface design
37 ///@details Anchor class implements the code to read in an anchor file, stores the definition of the anchor, and provides access methods for setting move maps. It reads in PDB-keyed information, but converts it to pose resid information and internally stores only the latter.
39 {
40 
41 public:
42  ///@brief default ctor uses option system to set anchorfile; can't set start and end until a pose is available
43  Anchor();
44 
45  ///@brief input constructor for arbitrary anchor, if you know resids; ignores anchorfile datum
46  Anchor( core::Size const start, core::Size const end );
47 
48  ///@brief input constructor from pose and anchorfile
49  Anchor( core::pose::Pose const & pose, std::string const & filename );
50 
51  ///@brief input constructor from pose, assumes anchorfile
52  Anchor( core::pose::Pose const & pose );
53 
54  virtual ~Anchor();
55 
56  ///@brief copy ctor
57  Anchor( Anchor const & rhs );
58 
59  ///@brief assignment operator
60  Anchor & operator=( Anchor const & rhs );
61 
62  ///@brief method to read an anchor file. Pose is necessary to reference against
63  void read_anchorfile(core::pose::Pose const & pose, std::string const & filename);
64 
65  ///@brief method to read an anchor file. Pose is necessary to reference against. Checks internal data for filename.
66  void read_anchorfile(core::pose::Pose const & pose);
67 
68  ///@brief returns start of anchor (as pose resid)
69  inline core::Size start() const { return start_; }
70  ///@brief returns end of anchor (as pose resid)
71  inline core::Size end() const { return end_; }
72 
73  //option system replacement
74  ///@brief setter for filename for anchorfile
75  void set_filename(std::string const & filename);
76  ///@brief getter for filename for anchorfile
77  std::string const & get_filename() const;
78  ///@brief read option system into internal data
79  void read_options();
80 
81 private:
82 
83  //Anchor class converts pdb info to pose resid and stores here
84  ///@brief start in pose resid terms
86  ///@brief end in pose resid terms
88  ///@brief filename source for anchorfile
90 
91 }; //class Anchor
92 
93 }//AnchoredDesign
94 }//protocols
95 
96 #endif //INCLUDED_protocols_AnchoredDesign_Anchor_HH