core38Example/example_fcns.h File Reference
#include "rdm.h"
Include dependency graph for core38Example/example_fcns.h:
Data Structures |
|
struct | perfTimer_t |
Macros |
|
#define | print_error(rc) print_errorEx (rc, __FILE__, __LINE__) |
#define | exampleOpenDatabase(tfs, db, name, catalog) exampleOpenDatabaseEx (tfs, db, name, catalog, 0, 0) |
#define | exampleOpenDatabaseInMemory(tfs, db, name, catalog) exampleOpenDatabaseEx (tfs, db, name, catalog, 0, 1) |
#define | exampleOpenEmptyDatabase(tfs, db, name, catalog) exampleOpenDatabaseEx (tfs, db, name, catalog, 1, 0) |
#define | exampleOpenEmptyDatabaseInMemory(tfs, db, name, catalog) exampleOpenDatabaseEx (tfs, db, name, catalog, 1, 1) |
#define | exampleOpenNextDatabase(tfs, db, name, catalog) exampleOpenNextDatabaseEx (tfs, db, name, catalog, 0, 0) |
#define | exampleOpenNextEmptyDatabase(tfs, db, name, catalog) exampleOpenNextDatabaseEx (tfs, db, name, catalog, 1, 0) |
#define | exampleCleanup(tfs, db) exampleCleanupEx (tfs, db, NULL) |
#define | exampleCleanup2(tfs, db1, db2) exampleCleanupEx (tfs, db1, db2) |
#define | RLEN(x) (sizeof (x) / sizeof (x[0])) |
Functions |
|
void | timeMeasureBegin (perfTimer_t *timer) |
void | timeMeasureEnd (perfTimer_t *timer) |
unsigned int | timeMeasureDiff (perfTimer_t *timer) |
void | print_errorEx (int rc, const char *file, int line) |
RDM_RETCODE | exampleOpenDatabaseEx (RDM_TFS *pTFS, RDM_DB *pDB, const char *dbName, const char *dbCatalog, int32_t empty, int32_t inmemory) |
RDM_RETCODE | exampleOpenNextDatabaseEx (RDM_TFS hTFS, RDM_DB *pDB, const char *dbName, const char *dbCatalog, int32_t empty, int32_t inmemory) |
RDM_RETCODE | exampleAllocTFS (RDM_TFS *pTFS) |
void | exampleCleanupEx (RDM_TFS hTFS, RDM_DB hDB1, RDM_DB hDB2) |
Macro Definition Documentation
exampleCleanup
#define exampleCleanup | ( | tfs, | |
db | |||
) | exampleCleanupEx (tfs, db, NULL) |
exampleCleanup2
#define exampleCleanup2 | ( | tfs, | |
db1, | |||
db2 | |||
) | exampleCleanupEx (tfs, db1, db2) |
exampleOpenDatabase
#define exampleOpenDatabase | ( | tfs, | |
db, | |||
name, | |||
catalog | |||
) | exampleOpenDatabaseEx (tfs, db, name, catalog, 0, 0) |
exampleOpenDatabaseInMemory
#define exampleOpenDatabaseInMemory | ( | tfs, | |
db, | |||
name, | |||
catalog | |||
) | exampleOpenDatabaseEx (tfs, db, name, catalog, 0, 1) |
exampleOpenEmptyDatabase
#define exampleOpenEmptyDatabase | ( | tfs, | |
db, | |||
name, | |||
catalog | |||
) | exampleOpenDatabaseEx (tfs, db, name, catalog, 1, 0) |
exampleOpenEmptyDatabaseInMemory
#define exampleOpenEmptyDatabaseInMemory | ( | tfs, | |
db, | |||
name, | |||
catalog | |||
) | exampleOpenDatabaseEx (tfs, db, name, catalog, 1, 1) |
exampleOpenNextDatabase
#define exampleOpenNextDatabase | ( | tfs, | |
db, | |||
name, | |||
catalog | |||
) | exampleOpenNextDatabaseEx (tfs, db, name, catalog, 0, 0) |
exampleOpenNextEmptyDatabase
#define exampleOpenNextEmptyDatabase | ( | tfs, | |
db, | |||
name, | |||
catalog | |||
) | exampleOpenNextDatabaseEx (tfs, db, name, catalog, 1, 0) |
print_error
#define print_error | ( | rc | ) | print_errorEx (rc, __FILE__, __LINE__) |
RLEN
#define RLEN | ( | x | ) | (sizeof (x) / sizeof (x[0])) |
Function Documentation
exampleAllocTFS()
RDM_RETCODE exampleAllocTFS | ( | RDM_TFS * | pTFS | ) |
exampleCleanupEx()
exampleOpenDatabaseEx()
RDM_RETCODE exampleOpenDatabaseEx | ( | RDM_TFS * | pTFS, |
RDM_DB * | pDB, | ||
const char * | dbName, | ||
const char * | dbCatalog, | ||
int32_t | empty, | ||
int32_t | inmemory | ||
) |
exampleOpenNextDatabaseEx()
RDM_RETCODE exampleOpenNextDatabaseEx | ( | RDM_TFS | hTFS, |
RDM_DB * | pDB, | ||
const char * | dbName, | ||
const char * | dbCatalog, | ||
int32_t | empty, | ||
int32_t | inmemory | ||
) |
print_errorEx()
void print_errorEx | ( | int | rc, |
const char * | file, | ||
int | line | ||
) |
timeMeasureBegin()
void timeMeasureBegin | ( | perfTimer_t * | timer | ) |
timeMeasureDiff()
unsigned int timeMeasureDiff | ( | perfTimer_t * | timer | ) |
timeMeasureEnd()
void timeMeasureEnd | ( | perfTimer_t * | timer | ) |