#include <hash_db.h>

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< Datahash > | getObject (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< Database > | create (IN const char *db_file) | 
| create Database object from specified file   | |
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.
| hash_db::Database::~Database | ( | void | ) |   throw () [virtual] | 
        
Definition at line 40 of file hash_db.cpp.
 1.7.1