Rosetta 3.5
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
core
io
pdb
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
17
#include <
core/io/pdb/pdb_dynamic_reader_options.hh
>
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
32
PDB_DReaderOptions::PDB_DReaderOptions
() {
init_from_options
(); }
33
34
PDB_DReaderOptions::~PDB_DReaderOptions
() {}
35
36
void
PDB_DReaderOptions::parse_my_tag
(
utility::tag::TagPtr
tag )
37
{
38
FileDataOptions::parse_my_tag
( tag );
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
47
bool
PDB_DReaderOptions::new_chain_order
()
const
{
return
new_chain_order_
; }
48
bool
PDB_DReaderOptions::obey_ENDMDL
()
const
{
return
obey_ENDMDL_
; }
49
50
// mutators
51
void
PDB_DReaderOptions::set_new_chain_order
(
bool
new_chain_order ) {
new_chain_order_
=
new_chain_order
; }
52
void
PDB_DReaderOptions::set_obey_ENDMDL
(
bool
obey_ENDMDL ) {
obey_ENDMDL_
=
obey_ENDMDL
; }
53
54
55
void
PDB_DReaderOptions::init_from_options
()
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
Generated on Sat Jun 1 2013 11:32:56 for Rosetta 3.5 by
1.8.4