emcPgStorageManager.h

Go to the documentation of this file.
00001 #ifndef __EMCPGSTORAGEMANAGER_H__
00002 #define __EMCPGSTORAGEMANAGER_H__
00003 
00004 #ifndef __EMCMANAGEABLE_H__
00005 #include "emcManageable.h"
00006 #endif
00007 #ifndef __PHTIMESTAMP_H__
00008 #include "PHTimeStamp.h"
00009 #endif
00010 #include "PdbCalBank.hh"
00011 #include "PHString.h"
00012 
00013 class PdbBankManager;
00014 class PdbBankID;
00015 class PHTimeStamp;
00016 class PdbApplication;
00017 
00018 class emcPgStorageManager
00019 {
00020  public:
00021 
00022   emcPgStorageManager();
00023   ~emcPgStorageManager();
00024 
00026   PdbBankManager* BankManager();
00027 
00029   PdbApplication* DBApplication();
00030 
00033   PdbCalBank* createBankWithUpdate(const char* className, 
00034                                    PdbBankID bankID, 
00035                                    const char* description, 
00036                                    PHTimeStamp& tStart, 
00037                                    PHTimeStamp& tEnd, 
00038                                    const char* bankName) 
00039   { assert(0==1); return 0; }
00040   
00044   PdbCalBank* fetchBank(const char *, PdbBankID, const char *, 
00045                         PHTimeStamp &, std::string category);
00046 
00047   PdbCalBank* fetchBank(const char *, PdbBankID, const char *, 
00048                         PHTimeStamp &);
00049   
00050   PdbCalBank* fetchPreviousVersionBank(const char *, PdbBankID, const char *, 
00051                                        PHTimeStamp &, std::string,
00052                                        int )
00053   { return 0; }
00054 
00055   void Reset();
00056 
00057   static emcManageable::EStorage storage() 
00058   { return emcManageable::kDB_Pg; }
00059 
00064   static const char* name() { return "emcPgStorageManager"; }
00065 
00066 private:
00067 
00068   //  PHString getRealName(const PHString & searchName);
00069 
00070 };
00071 
00072 #endif