Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AddorRemoveCsts.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/enzdes/movers/AddorRemoveCsts.hh
11 /// @author Florian Richter (floric@u.washington.edu)
12 
13 #ifndef INCLUDED_protocols_enzdes_AddorRemoveCsts_hh
14 #define INCLUDED_protocols_enzdes_AddorRemoveCsts_hh
15 
16 #include <core/types.hh>
17 #include <core/pose/Pose.fwd.hh>
18 #include <utility/tag/Tag.fwd.hh>
20 #include <protocols/moves/Mover.hh>
24 
25 #include <utility/vector1.hh>
26 
27 
28 
29 namespace protocols {
30 namespace enzdes {
31 
32 enum CstAction {
33  VOID = 1,
37 };
38 
39 
40 /// @brief A simple wrapper to get the functionality in EnzConstraintIO
41 /// into mover format
43 
44 public: //Constructor / Destructor
45 
47 
49 
51 
52 public:
53 
55  virtual std::string get_name() const;
56 
58 
59  void apply( core::pose::Pose & pose );
60 
61  void parse_my_tag(
62  utility::tag::TagPtr const tag,
66  core::pose::Pose const & );
67 
68  virtual void parse_def( utility::lua::LuaObject const & def,
69  utility::lua::LuaObject const & score_fxns,
70  utility::lua::LuaObject const & tasks,
72 
73  // @brief Set the name of the constraint file. Overwrites the file name that might be read in during parse_my_tag.
74  void cstfile( std::string const & setting );
75 
76  static
79 
80  void set_cst_action(CstAction action){ cst_action_=action; }
82  void set_keep_covalent( bool setting ){ keep_covalent_ = setting; }
83 
84 
85 protected:
86 
89  std::string const cstfile
90  );
91 
92 private:
93 
94  /// Save the contents of the constraint files that are read in for reuse.
95  static std::map< std::string, toolbox::match_enzdes_util::EnzConstraintIOOP > cstfile_map_;
96 
97  std::string option_cstfile_; // Read from options system if no user-defined constraint file is given.
98  std::string cstfile_; // May be set either by the parser or programmatically.
101 
102  ///atm this scorefunction is only used if the user specifes a covalent ambiguous constraint
103  ///in which case the ambiguity is resolved at the time of newly adding the constraints, and the
104  ///covalent connection established according to the then best constraints.
106 };
107 
108 } // enzdes
109 } // protocols
110 
111 
112 #endif /*INCLUDED_protocols_enzdes_AddorRemoveCsts_HH*/