[ Keywords | Classes | Data | Functions ]
Back to the top of ebase_lib
Back to the top of ebase_lib
Back to the top of ebase_lib
Back to the top of ebase_lib
Index Id type. Used to identify an index in an open database.
typedef EbUint8 EbIndexId;
Back to the top of ebase_lib
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
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
String constants used in ebase
extern const char EB_RECORD_ID[]; // "RecordId"
Back to the top of ebase_lib
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
Ebase boolean type.
typedef enum { EB_TRUE = 1, EB_FALSE = 0 } EbBoolean;
Back to the top of ebase_lib
typedef signed char EbInt8;
Back to the top of ebase_lib
typedef unsigned char EbUint8;
Back to the top of ebase_lib
typedef signed short EbInt16;
Back to the top of ebase_lib
typedef unsigned short EbUint16;
Back to the top of ebase_lib
typedef int EbInt32;
Back to the top of ebase_lib
typedef unsigned int EbUint32;
Back to the top of ebase_lib
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
The bad (invalid) data handle.
const EbDataHandle EB_INVALID_HANDLE = (EbDataHandle)-1;
Back to the top of ebase_lib
The magic word length for data file.
const EbInt32 EB_MAGIC_WORD_LENGTH = 4;
Back to the top of ebase_lib
database major versoin number
const EbUint8 EB_MAJOR_NUMBER = 1;
Back to the top of ebase_lib
database minor versoin number
const EbUint8 EB_MINOR_NUMBER = 0;
Back to the top of ebase_lib
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
maximum number of chars in field name
const EbUint32 EB_MAX_FIELD_NAME = 30;
Back to the top of ebase_lib
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
the maximum number of indices
const EbUint32 EB_MAX_NUM_INDICES = 255;
Back to the top of ebase_lib
Report problems to jkotula@vitalimages.com