Itzam/C++

Main Index

Created by Scott Robert Ladd at Coyote Gulch Productions.


itzam Namespace Reference

Complex database classes. More...

Classes

Enumerations


Detailed Description

These classes define a complex database that supports one or more indexes.

If you don't need this level of complexity, use the simple database class template.


Enumeration Type Documentation

enum itzam::database_error
 

Code to identify a database error condition. A "broken" database is one in which a prior error has occurred, rendering its condition questionable.

Enumerator:
DB_ERROR_NONE  there is no error (or spoon)
DB_ERROR_OPEN_BROKEN  can not open a broken database
DB_ERROR_OPEN_FAILED  can not open database
DB_ERROR_CLOSE_BROKEN  can not close a broken database
DB_ERROR_CLOSE_FAILED  can not close database
DB_ERROR_WRITE_BROKEN  can not write to a broken database
DB_ERROR_WRITE_CLOSED  can not write to a closed database
DB_ERROR_WRITE_DUPE  can not write duplicate key
DB_ERROR_WRITE_FAILED  write failed (system error)
DB_ERROR_READ_BROKEN  can not read from a broken database
DB_ERROR_READ_CLOSED  can not read from a closed database
DB_ERROR_READ_NOT_FOUND  can not read record, it was not found
DB_ERROR_READ_FAILED  read failed (system error)
DB_ERROR_EXISTS_BROKEN  can not check key existence in broken database
DB_ERROR_EXISTS_CLOSED  can not check key existence in closed database
DB_ERROR_REMOVE_BROKEN  can not remove record from broken database
DB_ERROR_REMOVE_CLOSED  can not remove record from closed database
DB_ERROR_REMOVE_NOT_FOUND  can not remove record, it was not found
DB_ERROR_REMOVE_FAILED  remove failed (system error)
DB_ERROR_REFLIST_MISSING  could not find reference list associated with key
DB_ERROR_COUNT  number of error states

enum itzam::database_state
 

The state of a database, such as whether it is open or closed.

Enumerator:
ITZAM_DB_BROKEN  Something is wrong with this database object, and it should not be used in its current state.
ITZAM_DB_UNINIT  This state only exists between the time the database constructor is called and the open is accomplished.
ITZAM_DB_OPEN  The database is open and available for operations.
ITZAM_DB_CLOSED  The database is closed, and must be opened before use.


© 1996-2005 Scott Robert Ladd. All rights reserved.
HTML documentation generated by Dimitri van Heesch's excellent Doxygen tool.