]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliCDBManager.h
AliCDBManager's "Lock" functionality implemented.
[u/mrichter/AliRoot.git] / STEER / AliCDBManager.h
index 418b2392da7ac48aeb9065353a13f5bb7fecbee4..dfd6c9250954e2f09d7158303d31f352f63d38a5 100644 (file)
@@ -51,15 +51,7 @@ class AliCDBManager: public TObject {
 
        Bool_t IsDefaultStorageSet() const {return fDefaultStorage != 0;}
        AliCDBStorage* GetDefaultStorage() const {return fDefaultStorage;}
-       void UnsetDefaultStorage() {fDefaultStorage = 0x0;}
-
-       void SetRemoteStorage(const char* dbString);
-       void SetRemoteStorage(const AliCDBParam* param);
-       void SetRemoteStorage(AliCDBStorage *storage);
-
-       Bool_t IsRemoteStorageSet() const {return fRemoteStorage != 0;}
-       AliCDBStorage* GetRemoteStorage() const {return fRemoteStorage;}
-       void UnsetRemoteStorage() {fRemoteStorage = 0x0;}
+       void UnsetDefaultStorage();
 
        void SetSpecificStorage(const char* calibType, const char* dbString);
        void SetSpecificStorage(const char* calibType, AliCDBParam* param);
@@ -100,6 +92,9 @@ class AliCDBManager: public TObject {
 
        void SetCacheFlag(Bool_t cacheFlag) {fCache=cacheFlag;}
        Bool_t GetCacheFlag() const {return fCache;}
+       
+       void SetLock(Bool_t lockFlag=kTRUE);
+       Bool_t GetLock() const {return fLock;}
 
        void SetRun(Int_t run);
        Int_t GetRun() const {return fRun;}
@@ -154,7 +149,6 @@ class AliCDBManager: public TObject {
        TList* fShortLived;     //! List of short lived objects
 
        AliCDBStorage *fDefaultStorage; //! pointer to default storage
-       AliCDBStorage *fRemoteStorage;  //! pointer to remote storage
        AliCDBStorage *fDrainStorage;   //! pointer to drain storage
 
        AliCDBParam* fCondParam;        // Conditions data storage parameters
@@ -162,6 +156,7 @@ class AliCDBManager: public TObject {
 
        Int_t fRun;                     //! The run number
        Bool_t fCache;                  //! The cache flag
+       Bool_t fLock;   //! Lock flag, if ON default storage and run number cannot be reset
 
 
        ClassDef(AliCDBManager, 0);