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 };
41 enum Mode {
44 };
45 protected:
48 private:
54 bool operator==(const Transaction& c) const;
55 protected:
59 virtual ~Transaction() { }
60 public:
62 int technology() const { return m_technology; }
64 virtual Action state() const = 0;
66 virtual Type type() const = 0;
67
69 static const char* actionAsString(Action action);
70
71 };
72} // End namespace pool
73#endif // POOL_TRANSACTION_H
int m_technology
Technology type.
Definition Transaction.h:47
virtual ~Transaction()
Destructor (called only by sub-classes)
Definition Transaction.h:59
static const char * actionAsString(Action action)
Translate Action to string.
int technology() const
Access to the technology type.
Definition Transaction.h:62
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:57
pool namespace
Definition libname.h:15