Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Remarks.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 // :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/file_data.hh
12 ///
13 /// @brief
14 /// @author Sergey Lyskov
15 
16 #ifndef INCLUDED_core_pose_Remarks_hh
17 #define INCLUDED_core_pose_Remarks_hh
18 
19 #include <core/pose/Remarks.fwd.hh>
20 
21 #include <utility/pointer/ReferenceCount.hh>
22 
23 #include <iostream>
24 #include <string>
25 #include <vector>
26 
27 namespace core {
28 namespace pose {
29 
31 
33 {
34 public:
35 ///@brief default constructor to initialize all values
36 RemarkInfo() : num( 0 ), value() {}
37 
38 /// For now, all member names have the same names as fields in PDB standard.
39 int num;
41 
42 /// @brief Debug printing, serialazing to Tracer like object.
43 friend std::ostream& operator <<(std::ostream &os, RemarkInfo const & ri) {
44  os << "<RemarkInfo>{" << "num=" << ri.num << " value=" << ri.value << "}";
45  return os;
46 }
47 
48 #ifdef USEBOOSTSERIALIZE
49  friend class boost::serialization::access;
50 
51  template<class Archive>
52  void serialize(Archive & ar, const unsigned int version) {
53  ar & num;
54  ar & value;
55  }
56 #endif
57 
58 };
59 
60 class Remarks : public std::vector< RemarkInfo >, public utility::pointer::ReferenceCount
61 {
62 #ifdef USEBOOSTSERIALIZE
63  friend class boost::serialization::access;
64 
65  template<class Archive>
66  void serialize(Archive & ar, const unsigned int version) {
67  ar & boost::serialization::base_object<std::vector<RemarkInfo> >(*this);
68  }
69 #endif
70 };
71 
72 } // namespace pose
73 } // namespace core
74 
75 #endif