OpenCog Framework  Branch: master, revision 6f0b7fc776b08468cf1b74aa9db028f387b4f0c0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SQLPersistSCM.h
Go to the documentation of this file.
1 /*
2  * opencog/persist/sql/SQLPersistSCM.h
3  *
4  * Copyright (c) 2008 by OpenCog Foundation
5  * Copyright (c) 2008, 2009, 2013, 2015 Linas Vepstas <linasvepstas@gmail.com>
6  * All Rights Reserved
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU Affero General Public License v3 as
10  * published by the Free Software Foundation and including the exceptions
11  * at http://opencog.org/wiki/Licenses
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU Affero General Public License
19  * along with this program; if not, write to:
20  * Free Software Foundation, Inc.,
21  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22  */
23 
24 #ifndef _OPENCOG_SQL_PERSIST_SCM_H
25 #define _OPENCOG_SQL_PERSIST_SCM_H
26 
27 #include <vector>
28 #include <string>
29 
33 
34 namespace opencog
35 {
40 class SQLBackingStore;
42 {
43 private:
44  static void* init_in_guile(void*);
45  static void init_in_module(void*);
46  void init(void);
47 
51 
52 public:
55 
56  void do_open(const std::string&, const std::string&, const std::string&);
57  void do_close(void);
58  void do_load(void);
59  void do_store(void);
60 
61 }; // class
62 
64 } // namespace
65 
66 extern "C" {
67 void opencog_persist_sql_init(void);
68 };
69 
70 #endif // _OPENCOG_SQL_PERSIST_SCM_H
AtomStorage * _store
Definition: SQLPersistSCM.h:49
void opencog_persist_sql_init(void)
static void init_in_module(void *)
static void * init_in_guile(void *)
SQLBackingStore * _backing
Definition: SQLPersistSCM.h:48
void do_open(const std::string &, const std::string &, const std::string &)
SQLPersistSCM(AtomSpace *)