// file : odb/tracer/transaction.hxx // author : Boris Kolpackov // license : GNU GPL v2; see accompanying LICENSE file #ifndef ODB_TRACER_TRANSACTION_HXX #define ODB_TRACER_TRANSACTION_HXX #include #include #include namespace odb { namespace tracer { class database; class transaction_impl; class LIBODB_TRACER_EXPORT transaction: public odb::transaction { public: typedef odb::database database_type; explicit transaction (transaction_impl*); // Return the database this transaction is on. // database_type& database (); // Return current transaction or throw if there is no transaction // in effect. // static transaction& current (); // Set the current thread's transaction. // static void current (transaction&); public: transaction_impl& implementation (); }; } } #include #include #endif // ODB_TRACER_TRANSACTION_HXX