[ 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
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
Report problems to jkotula@vitalimages.com