example_fcns.h File Reference
#include "rdm.h"
Include dependency graph for example_fcns.h:
This graph shows which files directly or indirectly include this file:
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) |
- Examples
- core02Example_main.c, core03Example_main.c, core04Example_main.c, core05Example_main.c, core06Example_main.c, core07Example_main.c, core10Example_main.c, core11Example_main.c, core20Example_main.c, core21Example_main.c, core22Example_main.c, core23Example_main.c, core24Example_main.c, core25Example_main.c, core28Example_main.c, core29Example_main.c, and core30Example_main.c.
exampleCleanup2
#define exampleCleanup2 | ( | tfs, | |
db1, | |||
db2 | |||
) | exampleCleanupEx (tfs, db1, db2) |
- Examples
- core13Example_main.c.
exampleOpenDatabase
#define exampleOpenDatabase | ( | tfs, | |
db, | |||
name, | |||
catalog | |||
) | exampleOpenDatabaseEx (tfs, db, name, catalog, 0, 0) |
- Examples
- core02Example_main.c, core05Example_main.c, and core06Example_main.c.
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) |
- Examples
- core20Example_main.c, core22Example_main.c, core24Example_main.c, and core29Example_main.c.
exampleOpenNextDatabase
#define exampleOpenNextDatabase | ( | tfs, | |
db, | |||
name, | |||
catalog | |||
) | exampleOpenNextDatabaseEx (tfs, db, name, catalog, 0, 0) |
- Examples
- core13Example_main.c.
exampleOpenNextEmptyDatabase
#define exampleOpenNextEmptyDatabase | ( | tfs, | |
db, | |||
name, | |||
catalog | |||
) | exampleOpenNextDatabaseEx (tfs, db, name, catalog, 1, 0) |
- Examples
- core08Example_main.c, and core09Example_main.c.
print_error
#define print_error | ( | rc | ) | print_errorEx (rc, __FILE__, __LINE__) |
- Examples
- core02Example_main.c, core03Example_main.c, core04Example_main.c, core05Example_main.c, core06Example_main.c, core07Example_main.c, core08Example_main.c, core09Example_main.c, core10Example_main.c, core11Example_main.c, core12Example_main.c, core13Example_main.c, core20Example_main.c, core21Example_main.c, core22Example_main.c, core23Example_main.c, core24Example_main.c, core25Example_main.c, core28Example_main.c, core29Example_main.c, core30Example_main.c, cpp50Example_main.cpp, and cpp55Example_main.cpp.
RLEN
#define RLEN | ( | x | ) | (sizeof (x) / sizeof (x[0])) |
Function Documentation
exampleAllocTFS()
RDM_RETCODE exampleAllocTFS | ( | RDM_TFS * | pTFS | ) |
- Examples
- core08Example_main.c, and core09Example_main.c.
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 | ||
) |
- Examples
- cpp50Example_main.cpp, and cpp55Example_main.cpp.
timeMeasureBegin()
void timeMeasureBegin | ( | perfTimer_t * | timer | ) |
timeMeasureDiff()
unsigned int timeMeasureDiff | ( | perfTimer_t * | timer | ) |
timeMeasureEnd()
void timeMeasureEnd | ( | perfTimer_t * | timer | ) |