Import Geant4 10.7.0 source tree
This commit is contained in:
@@ -23,55 +23,55 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// File: G4VTransactionManager.hh
|
||||
// G4VTransactionManager
|
||||
//
|
||||
// History:
|
||||
// 01.07.18 Youhei Morita Initial creation (with "fadsclass")
|
||||
// Class Description:
|
||||
//
|
||||
// Abstract base class for starting and commiting or aborting data
|
||||
// transaction.
|
||||
|
||||
#ifndef V_TRANSACTION_MANAGER_HH
|
||||
#define V_TRANSACTION_MANAGER_HH 1
|
||||
// Author: Youhei Morita, 18.07.2001
|
||||
// --------------------------------------------------------------------
|
||||
#ifndef G4VTRANSACTIONMANAGER_HH
|
||||
#define G4VTRANSACTIONMANAGER_HH 1
|
||||
|
||||
#include "G4Types.hh"
|
||||
#include <string>
|
||||
|
||||
// Class Description:
|
||||
// Abstract base class for starting and commiting or aborting data transaction
|
||||
|
||||
class G4VTransactionManager
|
||||
{
|
||||
public: // With description
|
||||
G4VTransactionManager() : m_verbose(0) {};
|
||||
public:
|
||||
|
||||
G4VTransactionManager() {}
|
||||
// Constructor
|
||||
|
||||
virtual ~G4VTransactionManager() {};
|
||||
virtual ~G4VTransactionManager() {}
|
||||
// Destructor
|
||||
|
||||
public: // With description
|
||||
void SetVerboseLevel(int v) { m_verbose = v; };
|
||||
// Set verbose level.
|
||||
void SetVerboseLevel(int v) { m_verbose = v; }
|
||||
// Set verbose level
|
||||
|
||||
virtual G4bool SelectReadFile(std::string obj, std::string file)=0;
|
||||
// Set the input file name and open it for the object type "obj".
|
||||
virtual G4bool SelectReadFile(std::string obj, std::string file) = 0;
|
||||
// Set the input file name and open it for the object type "obj"
|
||||
|
||||
virtual G4bool SelectWriteFile(std::string obj, std::string file)=0;
|
||||
// Set the output file name and open it for the object type "obj".
|
||||
virtual G4bool SelectWriteFile(std::string obj, std::string file) = 0;
|
||||
// Set the output file name and open it for the object type "obj"
|
||||
|
||||
virtual G4bool StartUpdate()=0;
|
||||
virtual G4bool StartUpdate() = 0;
|
||||
// Start an update transaction for event store and retrieve
|
||||
|
||||
virtual G4bool StartRead()=0;
|
||||
virtual G4bool StartRead() = 0;
|
||||
// Start a read-only transaction for event store and retrieve
|
||||
|
||||
virtual void Commit()=0;
|
||||
virtual void Commit() = 0;
|
||||
// commit the transaction for event store and retrieve
|
||||
|
||||
virtual void Abort()=0;
|
||||
virtual void Abort() = 0;
|
||||
// abort the transaction for event store and retrieve
|
||||
|
||||
protected:
|
||||
G4int m_verbose;
|
||||
protected:
|
||||
|
||||
}; // End of class G4VTransactionManager
|
||||
G4int m_verbose = 0;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user