Library ebase_lib


[ Keywords | Classes | Data | Functions ]

Quick Index

QUICK GUIDE



Classes

EbError
EbError is the exception class that is thrown by ebase.
EbIndexDef
EbIndexDef allows applications to construct or query about an index definition in Ebase. In ebase, an index can be defined based on multiple fields. Applications cannot modify the index definition if the definition already exists in ebase.
EbRecord
EbRecord is a class that allows one to retrieve and modify field data in a record. It is also used to create a new record.
EbSearch
EbSearch is a client-level module that provides single field based search functions.
Ebase
The embedded database engine class.
EbaseDef
EbaseDef is a class that let apps to construct a definition used to created Ebase database file. It can also be used to query the structure of an existing Ebase database.

Back to the top of ebase_lib


Data

typedef EbUint8 EbIndexId;
enum EbDataType ;
enum EbErrorEnum ;
const char EB_RECORD_ID[];
typedef enum EbResult;
typedef enum EbBoolean;
typedef signed char EbInt8;
typedef unsigned char EbUint8;
typedef signed short EbInt16;
typedef unsigned short EbUint16;
typedef int EbInt32;
typedef unsigned int EbUint32;
typedef EbUint16 EbDataHandle;
const EbDataHandle EB_INVALID_HANDLE == (EbDataHandle)-1;
const EbInt32 EB_MAGIC_WORD_LENGTH = 4;
const EbUint8 EB_MAJOR_NUMBER = 1;
const EbUint8 EB_MINOR_NUMBER = 0;
const EbUint32 EB_MAX_NUM_INDEX_FIELDS = 4;
const EbUint32 EB_MAX_FIELD_NAME = 30;
const EbUint32 EB_MAX_ENCODED_FIELD_SIZE = 255;
const EbUint32 EB_MAX_NUM_INDICES = 255;

Back to the top of ebase_lib


Global Functions

Back to the top of ebase_lib


QUICK GUIDE

Back to the top of ebase_lib


typedef EbUint8 EbIndexId;

#include "ebase.h"

Index Id type. Used to identify an index in an open database.

typedef EbUint8 EbIndexId;

Back to the top of ebase_lib


enum EbDataType ;

#include "ebase.h"

Data types supported in Ebase. (To be expanded in the future.)

enum EbDataType {
    EB_INT32,           // EbInt32
    EB_STRING,          // char *
    EB_RAW              // void * plus a size parameter
};

Back to the top of ebase_lib


enum EbErrorEnum ;

#include "ebase.h"

Exceptions Return by Ebase functions. In this implementation, we use C++ exception mechanism.

enum EbErrorEnum {
    EBE_FAIL = 3,
    EBE_OPEN_FILE = 1,
    EBE_OUT_OF_MEMORY = 2,
    EBE_OUT_OF_FILE_SPACE = 6,
    EBE_DATA_DRIVER_NOT_FOUND = 4,
    EBE_FIELD_TYPE_MISMATCH = 7,
    EBE_INVALID_FIELD = 8,
    EBE_INVALID_INDEX = 9,
    EBE_INVALID_RECORD = 10,
    EBE_ACCESS_VIOLATION = 11,
    EBE_DATABASE_NOT_OPEN = 12,
};

Back to the top of ebase_lib


const char EB_RECORD_ID[];

#include "ebase.h"

String constants used in ebase

extern const char EB_RECORD_ID[];       // "RecordId"

Back to the top of ebase_lib


typedef enum EbResult;

#include "ebglobal.h"

A boolean type used to check if a function call is successful.

typedef enum {
    EB_SUCCESS = 1,
    EB_FAILURE = 0
} EbResult;

Back to the top of ebase_lib


typedef enum EbBoolean;

#include "ebglobal.h"

Ebase boolean type.

typedef enum {
    EB_TRUE  = 1,
    EB_FALSE = 0
} EbBoolean;

Back to the top of ebase_lib


typedef signed char EbInt8;

#include "ebglobal.h"

typedef         signed char     EbInt8;

Back to the top of ebase_lib


typedef unsigned char EbUint8;

#include "ebglobal.h"

typedef         unsigned char   EbUint8;

Back to the top of ebase_lib


typedef signed short EbInt16;

#include "ebglobal.h"

typedef         signed short    EbInt16;

Back to the top of ebase_lib


typedef unsigned short EbUint16;

#include "ebglobal.h"

typedef         unsigned short  EbUint16;

Back to the top of ebase_lib


typedef int EbInt32;

#include "ebglobal.h"

typedef         int             EbInt32;

Back to the top of ebase_lib


typedef unsigned int EbUint32;

#include "ebglobal.h"

typedef         unsigned int    EbUint32;

Back to the top of ebase_lib


typedef EbUint16 EbDataHandle;

#include "ebglobal.h"

The EbDataHandle type. It is currently EbUint16, which implies a file can have no more than 64k number of data.

typedef         EbUint16          EbDataHandle;

Back to the top of ebase_lib


const EbDataHandle EB_INVALID_HANDLE = (EbDataHandle)-1;

#include "ebglobal.h"

The bad (invalid) data handle.

const   EbDataHandle EB_INVALID_HANDLE = (EbDataHandle)-1;

Back to the top of ebase_lib


const EbInt32 EB_MAGIC_WORD_LENGTH = 4;

#include "ebglobal.h"

The magic word length for data file.

const EbInt32 EB_MAGIC_WORD_LENGTH = 4;

Back to the top of ebase_lib


const EbUint8 EB_MAJOR_NUMBER = 1;

#include "ebglobal.h"

database major versoin number

const EbUint8 EB_MAJOR_NUMBER = 1;

Back to the top of ebase_lib


const EbUint8 EB_MINOR_NUMBER = 0;

#include "ebglobal.h"

database minor versoin number

const EbUint8 EB_MINOR_NUMBER = 0;

Back to the top of ebase_lib


const EbUint32 EB_MAX_NUM_INDEX_FIELDS = 4;

#include "ebglobal.h"

the maximum number of fields that can be definied in a generic index driver. (Database-specific index driver is not subject to this constraint.)

const EbUint32 EB_MAX_NUM_INDEX_FIELDS = 4;

Back to the top of ebase_lib


const EbUint32 EB_MAX_FIELD_NAME = 30;

#include "ebglobal.h"

maximum number of chars in field name

const EbUint32 EB_MAX_FIELD_NAME = 30;

Back to the top of ebase_lib


const EbUint32 EB_MAX_ENCODED_FIELD_SIZE = 255;

#include "ebglobal.h"

the maximum length of an encoded data. An encoded data is embedded into the record. It is currently 255, because the encoded field size is uint8.

const EbUint32 EB_MAX_ENCODED_FIELD_SIZE = 255;

Back to the top of ebase_lib


const EbUint32 EB_MAX_NUM_INDICES = 255;

#include "ebglobal.h"

the maximum number of indices

const EbUint32 EB_MAX_NUM_INDICES = 255;

Back to the top of ebase_lib


Generated from source by the Cocoon utilities on Tue Aug 14 12:00:07 2001 .

Report problems to jkotula@vitalimages.com