1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef __FRAMEWORK_THREADHELP_TRANSACTIONBASE_H_
25 #define __FRAMEWORK_THREADHELP_TRANSACTIONBASE_H_
26 
27 //_________________________________________________________________________________________________________________
28 //	my own includes
29 //_________________________________________________________________________________________________________________
30 
31 #include <threadhelp/transactionmanager.hxx>
32 
33 //_________________________________________________________________________________________________________________
34 //	interface includes
35 //_________________________________________________________________________________________________________________
36 
37 //_________________________________________________________________________________________________________________
38 //	other includes
39 //_________________________________________________________________________________________________________________
40 
41 //_________________________________________________________________________________________________________________
42 //	namespace
43 //_________________________________________________________________________________________________________________
44 
45 namespace framework{
46 
47 //_________________________________________________________________________________________________________________
48 //	const
49 //_________________________________________________________________________________________________________________
50 
51 //_________________________________________________________________________________________________________________
52 //	declarations
53 //_________________________________________________________________________________________________________________
54 
55 /*-************************************************************************************************************//**
56     @short          make it possible to instanciate a transacion manager as first member!
57     @descr          If you use a transaction manager as a member of your class and whish to use it earlier then other ones
58 					you should have a look on this implementation. You must use it as the first base class
59 					of your implementation - because base classes are initialized by his order and before your
60                     member! Thats why ist a good place to declare this member.
61 
62 	@implements		-
63 	@base			-
64 
65 	@devstatus		ready to use
66 *//*-*************************************************************************************************************/
67 struct TransactionBase
68 {
69 	//-------------------------------------------------------------------------------------------------------------
70 	//	public member
71 	//-------------------------------------------------------------------------------------------------------------
72 	public:
73 
74         mutable TransactionManager    m_aTransactionManager    ;   /// "your" public manager-member!
75                                                                    /// Make it mutable for using in const functions!
76 
77 };      //  struct TransactionBase
78 
79 }		//	namespace framework
80 
81 #endif  //  #ifndef __FRAMEWORK_THREADHELP_TRANSACTIONBASE_H_
82