OpenCog Framework  Branch: master, revision 6f0b7fc776b08468cf1b74aa9db028f387b4f0c0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
PersistSCM.h
Go to the documentation of this file.
1 /*
2  * opencog/persist/guile/PersistSCM.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_PERSIST_SCM_H
25 #define _OPENCOG_PERSIST_SCM_H
26 
29 
30 namespace opencog
31 {
37 {
38 private:
39  static void* init_in_guile(void*);
40  static void init_in_module(void*);
41  void init(void);
42 
46  void load_type(Type);
47  void barrier(void);
48 
49 public:
50  PersistSCM(void);
51 }; // class
52 
54 } // namespace
55 
56 extern "C" {
57 void opencog_persist_init(void);
58 };
59 
60 #endif // _OPENCOG_PERSIST_SCM_H
void barrier(void)
Definition: PersistSCM.cc:100
static void init_in_module(void *)
Definition: PersistSCM.cc:46
Handle fetch_atom(Handle)
Definition: PersistSCM.cc:68
Handle store_atom(Handle)
Definition: PersistSCM.cc:87
void opencog_persist_init(void)
Definition: PersistSCM.cc:106
unsigned short Type
type of Atoms, represented as short integer (16 bits)
Definition: types.h:40
static void * init_in_guile(void *)
Definition: PersistSCM.cc:39
void load_type(Type)
Definition: PersistSCM.cc:94
Handle fetch_incoming_set(Handle)
Definition: PersistSCM.cc:75