|
Last change
on this file was
9838,
checked in by westram, 13 years ago
|
- reintegrated branch 'db'
- GBDATA now is a base class of GBENTRY (new) and GBCONTAINER
- moved code into classes GBENTRY, GBCONTAINER and GB_MAIN_TYPE
- several functions now exist 2 (or 3) times (for GBENTRY and GBCONTAINER, and some for GBDATA as well)
- several functions changed their interface (caller has to explicitely pass GBENTRY or GBCONTAINER)
- dropped support for ARB
-version 0
- adds:
|
|
File size:
1.1 KB
|
| Line | |
|---|
| 1 | // =============================================================== // |
|---|
| 2 | // // |
|---|
| 3 | // File : gb_ta.h // |
|---|
| 4 | // Purpose : // |
|---|
| 5 | // // |
|---|
| 6 | // Institute of Microbiology (Technical University Munich) // |
|---|
| 7 | // http://www.arb-home.de/ // |
|---|
| 8 | // // |
|---|
| 9 | // =============================================================== // |
|---|
| 10 | |
|---|
| 11 | #ifndef GB_TA_H |
|---|
| 12 | #define GB_TA_H |
|---|
| 13 | |
|---|
| 14 | #ifndef GB_MAIN_H |
|---|
| 15 | #include "gb_main.h" |
|---|
| 16 | #endif |
|---|
| 17 | #ifndef GB_DATA_H |
|---|
| 18 | #include "gb_data.h" |
|---|
| 19 | #endif |
|---|
| 20 | |
|---|
| 21 | inline void GB_test_transaction(GB_MAIN_TYPE *Main) { |
|---|
| 22 | if (Main->get_transaction_level() == 0) { |
|---|
| 23 | GBK_terminate("No running transaction"); |
|---|
| 24 | } |
|---|
| 25 | } |
|---|
| 26 | inline void GB_test_transaction(GBDATA *gbd) { GB_test_transaction(GB_MAIN(gbd)); } |
|---|
| 27 | inline void GB_test_transaction(GBCONTAINER *gbc) { GB_test_transaction(GB_MAIN(gbc)); } |
|---|
| 28 | |
|---|
| 29 | #else |
|---|
| 30 | #error gb_ta.h included twice |
|---|
| 31 | #endif // GB_TA_H |
|---|
Note: See
TracBrowser
for help on using the repository browser.