Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PgPostApplication.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PgPostApplication.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef PDBCALPG_PGPOSTAPPLICATION_H
4 #define PDBCALPG_PGPOSTAPPLICATION_H
5 
6 #include <pdbcalbase/Pdb.h>
7 #include <pdbcalbase/PdbApplication.h>
8 
9 #include <string>
10 
11 class PdbCalBank;
12 class TSQLConnection;
13 
15 {
16  protected:
17  PgPostApplication(const std::string &dbname);
18 
19  public:
20  virtual ~PgPostApplication();
23  PdbStatus commit();
25  PdbStatus commit(PdbCalBank *, int rid, long, long, long);
26 
27  PdbStatus abort();
28  PdbStatus isActive() { return 0; }
30 
31  static int Register(const std::string &dbname = "calibrations");
32  static int releaseConnection();
33  static PgPostApplication *instance();
34  int setDBName(const std::string &name);
35  int DisconnectDB();
36 
37  protected:
40  bool readOnly;
42 };
43 
44 #endif /* PDBCAL_PG_PGPOSTAPPLICATION_H */