Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
mol_writer.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 /// @file core/chemical/sdf/mol_writer.hh
11 /// @author Sam DeLuca
12 
13 #ifndef INCLUDED_core_chemical_sdf_mol_writer_hh
14 #define INCLUDED_core_chemical_sdf_mol_writer_hh
15 
19 // AUTO-REMOVED #include <utility/io/ozstream.hh>
20 #include <core/types.hh>
21 #include <list>
22 
23 #include <utility/io/ozstream.fwd.hh>
24 #include <string>
25 
26 namespace core {
27 namespace chemical {
28 namespace sdf {
29 
30 
31 
32 class MolWriter
33 {
34 public:
35  MolWriter();
36  void output_residue(utility::io::ozstream & output_stream, core::conformation::ResidueCOP residue);
37  void output_residue(utility::io::ozstream & output_stream, core::chemical::ResidueTypeOP residue_type);
38 
39  void output_residue(std::string const file_name,core::conformation::ResidueCOP residue);
40  void output_residue(std::string const file_name, core::chemical::ResidueTypeOP residue_type);
41 
42 private:
43 
44  std::list<std::string> compose_metadata(core::conformation::ResidueCOP residue);
45  std::list<std::string> compose_ctab(core::conformation::ResidueCOP residue);
46  std::list<std::string> compose_atoms(core::conformation::ResidueCOP residue);
47  std::list<std::string> compose_bonds(core::conformation::ResidueCOP residue);
48  std::list<std::string> compose_typeinfo(core::conformation::ResidueCOP residue);
49  std::list<std::string> compose_nbr_atom(core::conformation::ResidueCOP residue);
50 
51  //utility::io::ozstream output_stream_;
53 };
54 
55 }
56 }
57 }
58 
59 #endif /* MOL_WRITER_HH_ */