20 #ifndef __DbTableTypes_H
21 #define __DbTableTypes_H
49 #define AnyType DbDomainDesc
50 #define AnyAr DmnDescAr
51 #define AnyFormatSpec "\n%d: dname=%s offset=%d atype=%d dim=%d categ=%d"
52 #define AnyPrintList i, item.dname, item.offset, item.atype, item.dim, \
54 #include <mix/AnyAr.H>
75 #define AssocAr TTDescAr
76 #define AssocItemType DbTTDesc
77 #define AssocKeyField ttname
78 #define AssocKeyAssign strncpy(item.ttname,key,DB_IDENT_LEN);\
79 item.ttname[DB_IDENT_LEN]='\0'
80 #define AssocKeyType const char*
81 #define AssocKeysCmp(x,y) strcmp((x), (y))
82 #define AssocFormatSpec "\n%d: ttname=%s recsize=%zu dmns=%p "\
84 #define AssocPrintList i, item.ttname, item.recsize, item.dmns, \
85 (item.dmns==NULL)? 0: item.dmns->count()
86 #include <mix/AssocAr.H>
102 void register_tt (
const char* ttname,
const DmnDescAr& dmns);
108 Logic
find_tt (
const char* ttname,
109 size_t* recsize = NULL,
110 DmnDescAr* dmns = NULL);
161 #ifndef __db_app_tt_reg
168 void DbCreateAppTTReg ();
172 DbTTDesc& DbGetTTDesc (
const char* ttname);
176 DbTTDesc& DbAddTTDesc (
const char* ttname,
183 const DmnDescAr& dmns);
187 DbTTDesc* DbGetSysTTDesc (
const char* ttname);
#define DB_IDENT_LEN
Definition: dbdefs.h:37
Definition: DbTableTypes.H:93
void write_to_file(int fd)
Logic find_tt(const char *ttname, size_t *recsize=NULL, DmnDescAr *dmns=NULL)
void append_from_file(int fd)
DmnDescAr * dmns
Definition: DbTableTypes.H:65
void append_from_file(const char *fname)
Logic bMakeNull
Definition: DbTableTypes.H:155
void append_standard_tts()
DbAppTTRegister(Logic dbAppTTRegFlag=FALSE)
virtual ~DbAppTTRegister()
Definition: DbTableTypes.H:128
void register_tt(const char *ttname, const DmnDescAr &dmns)
void write_to_file(const char *fname)
void remove_tt(const char *ttname)
size_t recsize
Definition: DbTableTypes.H:64
Definition: DbTableTypes.H:61
DbTTDesc & tt(const char *ttname)