OpenCog Framework  Branch: master, revision 6f0b7fc776b08468cf1b74aa9db028f387b4f0c0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
opencog::SQLPersistSCM Class Reference

#include <SQLPersistSCM.h>

+ Collaboration diagram for opencog::SQLPersistSCM:

Public Member Functions

 SQLPersistSCM (AtomSpace *)
 
 ~SQLPersistSCM ()
 
void do_open (const std::string &, const std::string &, const std::string &)
 
void do_close (void)
 
void do_load (void)
 
void do_store (void)
 

Private Member Functions

void init (void)
 

Static Private Member Functions

static void * init_in_guile (void *)
 
static void init_in_module (void *)
 

Private Attributes

SQLBackingStore_backing
 
AtomStorage_store
 
AtomSpace_as
 

Detailed Description

Definition at line 41 of file SQLPersistSCM.h.

Constructor & Destructor Documentation

SQLPersistSCM::SQLPersistSCM ( AtomSpace as)
SQLPersistSCM::~SQLPersistSCM ( )

Definition at line 164 of file SQLPersistSCM.cc.

References _backing.

Member Function Documentation

void SQLPersistSCM::do_close ( void  )

Definition at line 197 of file SQLPersistSCM.cc.

References _as, _backing, _store, opencog::SQLBackingStore::set_store(), opencog::SchemeSmob::ss_get_env_as(), and opencog::AtomSpace::unregisterBackingStore().

+ Here is the caller graph for this function:

void SQLPersistSCM::do_load ( void  )

Definition at line 215 of file SQLPersistSCM.cc.

References _as, _store, opencog::AtomSpace::get_atomtable(), opencog::AtomStorage::load(), and opencog::SchemeSmob::ss_get_env_as().

+ Here is the caller graph for this function:

void SQLPersistSCM::do_open ( const std::string &  dbname,
const std::string &  username,
const std::string &  auth 
)
void SQLPersistSCM::do_store ( void  )

Definition at line 231 of file SQLPersistSCM.cc.

References _as, _store, opencog::AtomSpace::get_atomtable(), opencog::SchemeSmob::ss_get_env_as(), and opencog::AtomStorage::store().

+ Here is the caller graph for this function:

void SQLPersistSCM::init ( void  )
private

Definition at line 154 of file SQLPersistSCM.cc.

References do_close(), do_load(), do_open(), and do_store().

+ Here is the caller graph for this function:

void * SQLPersistSCM::init_in_guile ( void *  self)
staticprivate

Definition at line 139 of file SQLPersistSCM.cc.

References init_in_module().

+ Here is the caller graph for this function:

void SQLPersistSCM::init_in_module ( void *  data)
staticprivate

Definition at line 148 of file SQLPersistSCM.cc.

References init().

+ Here is the caller graph for this function:

Member Data Documentation

AtomSpace* opencog::SQLPersistSCM::_as
private

Definition at line 50 of file SQLPersistSCM.h.

SQLBackingStore* opencog::SQLPersistSCM::_backing
private

Definition at line 48 of file SQLPersistSCM.h.

AtomStorage* opencog::SQLPersistSCM::_store
private

Definition at line 49 of file SQLPersistSCM.h.


The documentation for this class was generated from the following files: