Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AtomTypeDatabaseIO.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 src/core/chemical/AtomTypeDatabaseIO.hh
11 /// @author Matthew O'Meara
12 
13 #ifndef INCLUDED_core_chemical_AtomTypeDatabaseIO_hh
14 #define INCLUDED_core_chemical_AtomTypeDatabaseIO_hh
15 
16 #include <utility/pointer/ReferenceCount.hh>
19 #include <utility/sql_database/DatabaseSessionManager.fwd.hh>
22 
23 #include <map>
24 
25 namespace core {
26 namespace chemical {
27 
28 
30 public:
31 
33 
34  virtual ~AtomTypeDatabaseIO();
35 
36 public: // store in a database information associated with an atom type set
37 
38  ///@brief generate the table schemas and write them to the database
39  void
41  utility::sql_database::sessionOP db_session) const;
42 
43 private:
44  void
46  utility::sql_database::sessionOP db_session) const;
47 
48  void
50  utility::sql_database::sessionOP db_session) const;
51 
52  void
54  utility::sql_database::sessionOP db_session) const;
55 
56  void
58  utility::sql_database::sessionOP db_session) const;
59 
60 
61 public:
62  ///@brief write the schema
63  void
64  initialize(
65  utility::sql_database::sessionOP db_session) const;
66 
67  void
69  chemical::AtomTypeSet const & atom_type_set,
70  utility::sql_database::sessionOP db_session) const;
71 
74  utility::sql_database::sessionOP db_session) const;
75 
76 private:
77 
78  void
80  std::string const & atom_type_set_name,
81  AtomType const & atom_type,
82  utility::sql_database::sessionOP db_session) const;
83 
84  void
86  std::string const & atom_type_set_name,
87  AtomType const & atom_type,
88  utility::sql_database::sessionOP db_session) const;
89 
90  void
92  AtomTypeSet const & atom_type_set,
93  AtomType const & atom_type,
94  utility::sql_database::sessionOP db_session) const;
95 
96 };
97 
98 
99 } // namespace
100 } // namespace
101 
102 #endif // include guard