Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PcsInputLine.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 //
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/PcsLineData.cc
14  ///
15  /// @brief Class that hold a line data of the input file
16  ///
17  /// @detailed
18  ///
19  /// @param
20  ///
21  /// @return
22  ///
23  /// @remarks
24  ///
25  /// @references
26  ///
27  /// @authorsv Christophe Schmitz
28  ///
29  /// @last_modified February 2010
30  ////////////////////////////////////////////////
31 
32 
33 // Unit headers
35 
36 // Package headers
37 
38 // Project headers
39 #include <basic/Tracer.hh>
40 
41 // Utility headers
42 #include <utility/exit.hh>
43 
44 // Numeric headers
45 
46 // Objexx headers
47 
48 // C++ headers
49 //#include <iostream>
50 #include <iomanip>
51 
52 namespace protocols{
53 namespace scoring{
54 namespace methods{
55 namespace pcs2{
56 
57 basic::Tracer TR_PcsInputLine("protocols.scoring.methods.pcs.PcsInputLine");
58 
60  residue_num_(0),
61  atom_name_(""),
62  PCS_experimental_(0),
63  PCS_tolerance_(0)
64 {
65  utility_exit_with_message( "You shouldn't call the empty constructor for PcsInputLine class" );
66 }
67 
69 }
70 
72  residue_num_(other.residue_num_),
73  atom_name_(other.atom_name_),
74  PCS_experimental_(other.PCS_experimental_),
75  PCS_tolerance_(other.PCS_tolerance_)
76 {
77 }
78 
81 {
82  if ( this != &other ) {
83  //All data member are const, nothing to copy
84  }
85  return *this;
86 }
87 
90  return residue_num_;
91 }
92 
95  return atom_name_;
96 }
97 
100  return PCS_experimental_;
101 }
102 
103 
106  return PCS_tolerance_;
107 }
108 
110  std::string atom_name,
111  core::Real PCS_experimental,
112  core::Real PCS_tolerance
113  ) :
114  residue_num_( residue_num ),
115  atom_name_(atom_name),
116  PCS_experimental_(PCS_experimental),
117  PCS_tolerance_(PCS_tolerance)
118 {
119 }
120 
121 std::ostream &
122 operator<<(std::ostream& out, const PcsInputLine &me){
123  out << "Residue: " << std::setw(4) << me.get_residue_num();
124  out << " Atom: " << std::setw(4) << me.get_atom_name();
125  out << " PCS: " << std::setw(7) << me.get_PCS_experimental();
126  out << " Tolerance: " << std::setw(7) << me.get_PCS_tolerance()<< std::endl;
127  return out;
128 }
129 
130 }//namespace pcs2
131 }//namespace methods
132 }//namespace scoring
133 }//namespace protocols