ATLAS Offline Software
Loading...
Searching...
No Matches
Transaction.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5//====================================================================
6// Transaction definition file
7//--------------------------------------------------------------------
8//
9// Author : M.Frank
10//====================================================================
11#ifndef POOL_TRANSACTION_H
12#define POOL_TRANSACTION_H
13
14/*
15 * POOL namespace declaration
16 */
17namespace pool {
18
27 public:
28 enum Type {
33 };
42 enum Mode {
45 };
46 protected:
49 private:
55 bool operator==(const Transaction& c) const;
56 protected:
60 virtual ~Transaction() { }
61 public:
63 int technology() const { return m_technology; }
65 virtual Action state() const = 0;
67 virtual Type type() const = 0;
68
70 static const char* actionAsString(Action action);
71
72 };
73} // End namespace pool
74#endif // POOL_TRANSACTION_H
int m_technology
Technology type.
Definition Transaction.h:48
virtual ~Transaction()
Destructor (called only by sub-classes)
Definition Transaction.h:60
static const char * actionAsString(Action action)
Translate Action to string.
int technology() const
Access to the technology type.
Definition Transaction.h:63
virtual Action state() const =0
Access to the state of the transaction.
virtual Type type() const =0
Access to the transaction type.
bool operator==(const Transaction &c) const
No equals operator.
Transaction(const Transaction &c)
No copy constructor.
Transaction & operator=(const Transaction &c)
No assignment.
Transaction()
Standard empty constructor.
Definition Transaction.h:58
pool namespace
Definition libname.h:15