UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
db_vrf.h
Go to the documentation of this file.
1 /* db_vrf.h */
2 /* $Id: db_vrf.h,v 1.4 2004/11/12 13:38:42 vlad Exp $ */
3 #ifndef __db_vrf_h
4 #define __db_vrf_h
5 
6 #include <mix/ErrCodes.h>
7 #include <mix/Types.h>
8 
9 #include <ldb/dbtc.h>
10 
11 
20 #define dbVRF_Label (1<<0)
21 #define dbVRF_Width (1<<1)
22 #define dbVRF_Prec (1<<2)
23 #define dbVRF_Tail (1<<3)
24 
29 typedef struct
30 {
31  char *dmn_name;
32  int flags;
33  char *label;
34  int width;
35  int prec;
36  Logic tail;
39 } dbDomainVRF;
40 
41 #ifdef __cplusplus
42 extern "C" {
43 #endif /* C++ */
44 
45 
51 ErrCode dbLoadSystemVRF (const char* szTableType,
52  int* nDmns, STRLIST* pOrder, dbDomainVRF** pVRFs);
53 
54 
60 ErrCode dbLoadDomainVRF (const char* szPathVRF, const char* szTableType,
61  int* nDmns, STRLIST* pOrder, dbDomainVRF** pVRFs);
62 
63 
65 ErrCode dbSaveDomainVRF (const char* szPathVRF, const char* szTableType,
66  int nDmns, const dbDomainVRF* pVRFs);
67 
68 
72 void dbFreeDomainVRF (int nDmns, STRLIST pOrder, dbDomainVRF* pVRFs);
73 
74 
75 
76 
80 int dbComposedLenVRF (dbHandle db,
81  int nDmns, const dbDomainVRF* pVRFs);
82 
86 void dbComposeTitleVRF (dbHandle db, char* szTitle,
87  int nDmns, const dbDomainVRF* pVRFs);
88 
92 void dbComposeLineVRF (dbHandle db, int iLineNo, char* szLine,
93  int nDmns, const dbDomainVRF* pVRFs);
94 
95 
96 #ifdef __cplusplus
97 };
98 #endif /* C++ */
99 
100 #endif /* db_vrf.h */
void dbComposeTitleVRF(dbHandle db, char *szTitle, int nDmns, const dbDomainVRF *pVRFs)
int dbComposedLenVRF(dbHandle db, int nDmns, const dbDomainVRF *pVRFs)
Definition: db_vrf.h:29
Logic tail
Definition: db_vrf.h:36
int flags
Definition: db_vrf.h:32
ErrCode dbLoadDomainVRF(const char *szPathVRF, const char *szTableType, int *nDmns, STRLIST *pOrder, dbDomainVRF **pVRFs)
char * dmn_name
Definition: db_vrf.h:31
void dbFreeDomainVRF(int nDmns, STRLIST pOrder, dbDomainVRF *pVRFs)
int prec
Definition: db_vrf.h:35
ErrCode dbSaveDomainVRF(const char *szPathVRF, const char *szTableType, int nDmns, const dbDomainVRF *pVRFs)
int width
Definition: db_vrf.h:34
char * label
Definition: db_vrf.h:33
void dbComposeLineVRF(dbHandle db, int iLineNo, char *szLine, int nDmns, const dbDomainVRF *pVRFs)
ErrCode dbLoadSystemVRF(const char *szTableType, int *nDmns, STRLIST *pOrder, dbDomainVRF **pVRFs)