OpenCog Framework
Branch: master, revision 6f0b7fc776b08468cf1b74aa9db028f387b4f0c0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
30
#include <
opencog/atomspace/AtomSpace.h
>
31
#include <
opencog/atomspace/Handle.h
>
32
#include <
opencog/persist/sql/AtomStorage.h
>
33
34
namespace
opencog
35
{
40
class
SQLBackingStore;
41
class
SQLPersistSCM
42
{
43
private
:
44
static
void
*
init_in_guile
(
void
*);
45
static
void
init_in_module
(
void
*);
46
void
init
(
void
);
47
48
SQLBackingStore
*
_backing
;
49
AtomStorage
*
_store
;
50
AtomSpace
*
_as
;
51
52
public
:
53
SQLPersistSCM
(
AtomSpace
*);
54
~SQLPersistSCM
();
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
opencog::SQLPersistSCM::_store
AtomStorage * _store
Definition:
SQLPersistSCM.h:49
opencog::SQLPersistSCM
Definition:
SQLPersistSCM.h:41
opencog_persist_sql_init
void opencog_persist_sql_init(void)
Definition:
SQLPersistSCM.cc:246
opencog::SQLPersistSCM::init
void init(void)
Definition:
SQLPersistSCM.cc:154
AtomStorage.h
Handle.h
opencog::SQLPersistSCM::do_close
void do_close(void)
Definition:
SQLPersistSCM.cc:197
opencog::SQLPersistSCM::_as
AtomSpace * _as
Definition:
SQLPersistSCM.h:50
opencog::AtomSpace
Definition:
AtomSpace.h:54
opencog::SQLPersistSCM::do_store
void do_store(void)
Definition:
SQLPersistSCM.cc:231
opencog::SQLPersistSCM::init_in_module
static void init_in_module(void *)
Definition:
SQLPersistSCM.cc:148
opencog::SQLPersistSCM::init_in_guile
static void * init_in_guile(void *)
Definition:
SQLPersistSCM.cc:139
opencog::SQLPersistSCM::_backing
SQLBackingStore * _backing
Definition:
SQLPersistSCM.h:48
opencog::SQLPersistSCM::~SQLPersistSCM
~SQLPersistSCM()
Definition:
SQLPersistSCM.cc:164
AtomSpace.h
opencog::AtomStorage
Definition:
AtomStorage.h:48
opencog::SQLPersistSCM::do_load
void do_load(void)
Definition:
SQLPersistSCM.cc:215
opencog::SQLBackingStore
Definition:
SQLPersistSCM.cc:34
opencog::SQLPersistSCM::do_open
void do_open(const std::string &, const std::string &, const std::string &)
Definition:
SQLPersistSCM.cc:169
opencog::SQLPersistSCM::SQLPersistSCM
SQLPersistSCM(AtomSpace *)
Definition:
SQLPersistSCM.cc:99
opencog
persist
sql
SQLPersistSCM.h
Generated on Sat Aug 22 2015 21:00:13 for OpenCog Framework by
1.8.6