Public Member Functions | Static Public Member Functions

hash_db::Database Class Reference
[Simple Hash Database API]

hash_db::Database More...

#include <hash_db.h>

Inheritance diagram for hash_db::Database:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~Database (void) throw ()
virtual void getIds (OUT SetString &ids)=0
 get IDs for all objects in database
virtual bool addObject (IN const char *id, IN smart_ptr< Datahash > obj)=0
 add the given object (hash) to the database with the given ID
virtual smart_ptr< DatahashgetObject (IN const char *id)=0
 retrieve the object with the specified ID
virtual bool deleteObject (IN const char *id)=0
 delete the object with the specified ID
virtual bool commit (void)=0
 commit all outstanding changes

Static Public Member Functions

static smart_ptr< Databasecreate (IN const char *db_file)
 create Database object from specified file

Detailed Description

hash_db::Database

This is the object to use. Uses advisory locking under the covers, so only 1 process can access at a time.

Definition at line 72 of file hash_db.h.


Constructor & Destructor Documentation

hash_db::Database::~Database ( void   )  throw () [virtual]

Definition at line 40 of file hash_db.cpp.


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