VisualIB  1.0
IBExpress library for making use of Borland IBExpress outside of C++Builder
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
vibinlines.h
Go to the documentation of this file.
1 
10 #ifndef VIBINLINES_H__
11 #define VIBINLINES_H__
12 
13 #include <ibdatabase.hpp>
14 #include <ibcustomdataset.hpp>
15 #include <ibsql.hpp>
16 
17 #include "vibdatabase.h"
18 #include "vibtransaction.h"
19 #include "vibsql.h"
20 #include "vibdataset.h"
21 
27 static inline TIBDatabase *TDBForVDB(VIBDatabase *vdb)
28 {
29  return static_cast<TIBDatabase *>(vdb->opaque);
30 }
31 
37 static inline TIBTransaction *TTRForVTR(VIBTransaction *vtr)
38 {
39  return static_cast<TIBTransaction *>(vtr->opaque);
40 }
41 
47 static inline TIBSQL *TSQLForVSQL(VIBSQL *vsql)
48 {
49  return static_cast<TIBSQL *>(vsql->opaque);
50 }
51 
57 static inline TIBDataSet *TDSForVDS(VIBDataSet *vds)
58 {
59  return static_cast<TIBDataSet *>(vds->opaque);
60 }
61 
62 #endif
63 
64 // EOF
65 
66