ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PdbApplication.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PdbApplication.cc
1 //-----------------------------------------------------------------------------
2 // $Header: /afs/rhic.bnl.gov/phenix/PHENIX_CVS/offline/database/pdbcal/base/PdbApplication.cc,v 1.6 2013/02/01 04:32:04 pinkenbu Exp $
3 //
4 // The pdbcal package
5 // Copyright (C) PHENIX collaboration, 1999
6 //
7 // Implementation of class PdbApplication
8 //
9 // Author: Matthias Messer
10 //-----------------------------------------------------------------------------
11 
12 #include "PdbApplication.h"
13 
14 #include <iostream>
15 #include <memory>
16 
17 std::unique_ptr<PdbApplication> PdbApplication::__instance;
18 
20 {
21  if (not __instance.get())
22  {
23  std::cerr << __FILE__ << " " << __LINE__ << " No instance of PdbApplication available" << std::endl;
24  return nullptr;
25  }
26 
27  return __instance.get();
28 }