Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
pdb_dynamic_reader_options.cc
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/pdb/pdb_dynamic_reader_options.cc
12 ///
13 /// @brief
14 /// @author Brian D. Weitzner brian.weitzner@gmail.com
15 
16 // Unit headers
18 
19 // Basic headers
20 #include <basic/options/option.hh>
21 #include <basic/options/keys/in.OptionKeys.gen.hh>
22 
23 // Utility headers
24 #include <utility/tag/Tag.hh>
25 
26 // C++ headers
27 
28 namespace core {
29 namespace io {
30 namespace pdb {
31 
33 
35 
37 {
39 
40  set_new_chain_order( tag->getOption< bool >( "new_chain_order", 0 ));
41  set_obey_ENDMDL( tag->getOption< bool >( "obey_ENDMDL", 0 ));
42 }
43 
44 std::string PDB_DReaderOptions::type() const { return "pdb_dynamic_reader_options"; }
45 
46 // accessors
49 
50 // mutators
53 
54 
56 {
57  using namespace basic::options;
58  using namespace basic::options::OptionKeys;
59 
60  set_new_chain_order( option[ in::file::new_chain_order ]() );
61  set_obey_ENDMDL( option[ in::file::obey_ENDMDL ].value() );
62 }
63 
64 } // namespace pdb
65 } // namespace io
66 } // namespace core