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
protocols
scoring
methods
pcs2
PcsInputFile.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
//////////////////////////////////////////////
11
/// @begin
12
///
13
/// @file protocols/scoring/methods/pcs2/PcsInputFile.hh
14
///
15
/// @brief Read all input from a .npc input file, and hold the data in the class.
16
/// One file per lanthanide data.
17
///
18
/// @detailed
19
///
20
/// @param
21
///
22
/// @return
23
///
24
/// @remarks
25
///
26
/// @references
27
///
28
/// @authorsv Christophe Schmitz
29
///
30
/// @last_modified February 2010
31
////////////////////////////////////////////////
32
33
#ifndef INCLUDED_protocols_scoring_methods_pcs2_PcsInputFile_hh
34
#define INCLUDED_protocols_scoring_methods_pcs2_PcsInputFile_hh
35
36
// Package headers
37
#include <
protocols/scoring/methods/pcs2/PcsInputLine.hh
>
38
39
// Project headers
40
41
// Utility headers
42
#include <utility/vector1.hh>
43
44
// Numeric headers
45
46
// Objexx headers
47
48
// C++ headers
49
50
namespace
protocols{
51
namespace
scoring{
52
namespace
methods{
53
namespace
pcs2
{
54
55
//////////////////////////////////////////////////////////
56
/// @brief PcsInputFile contain all the information of a .npc file
57
/// one per lanthanide.
58
class
PcsInputFile
{
59
private
:
60
std::string
const
filename_
;
61
utility::vector1<PcsInputLine>
PcsInputLine_all_
;
62
core::Real
const
weight_
;
63
64
/// @brief read the file containing the PCS. Private and called by the constructor
65
void
66
read_PCS_file
();
67
68
public
:
69
PcsInputFile
();
//construct
70
71
~PcsInputFile
();
//destruct
72
73
PcsInputFile
(
PcsInputFile
const
& other);
//copy
74
75
PcsInputFile
&
76
operator=
(
PcsInputFile
const
& other );
// =
77
78
PcsInputFile
(
std::string
const
&
filename
,
core::Real
const
my_weight);
79
80
/// @brief Give me the name of the file
81
std::string
82
get_filename
()
const
;
83
84
/// @brief Give me the weight associated
85
core::Real
86
get_weight
()
const
;
87
88
/// @brief Give me the vector of all the line of the file
89
utility::vector1<PcsInputLine>
&
90
get_PcsInputLine_all
();
91
92
/// @brief Print me on the stream
93
friend
std::ostream &
94
operator<<
(std::ostream& out,
const
PcsInputFile
&me);
95
};
96
97
98
}
//namespace pcs2
99
}
//namespace methods
100
}
//namespace scoring
101
}
//namespace protocols
102
103
#endif
Generated on Sat Jun 1 2013 12:11:35 for Rosetta 3.5 by
1.8.4