1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
16 /////////////////////////////////////////////////////////////////////
18 // class AliCDBEntry //
19 // container for an object, it identity (AliCDBId) //
20 // and its metaData (AliCDBMetaData) //
22 /////////////////////////////////////////////////////////////////////
24 #include "AliCDBEntry.h"
29 //_____________________________________________________________________________
30 AliCDBEntry::AliCDBEntry():
35 // default constructor
39 //_____________________________________________________________________________
40 AliCDBEntry::AliCDBEntry(TObject* object, const AliCDBId& id,
41 AliCDBMetaData* metaData, Bool_t owner):
50 //_____________________________________________________________________________
51 AliCDBEntry::AliCDBEntry(TObject* object, const AliCDBPath& path,
52 const AliCDBRunRange& runRange,
53 AliCDBMetaData* metaData,Bool_t owner):
55 fId(path, runRange, -1, -1),
62 //_____________________________________________________________________________
63 AliCDBEntry::AliCDBEntry(TObject* object, const AliCDBPath& path,
64 const AliCDBRunRange& runRange,
65 Int_t version, AliCDBMetaData* metaData, Bool_t owner):
67 fId(path, runRange, version, -1),
74 //_____________________________________________________________________________
75 AliCDBEntry::AliCDBEntry(TObject* object, const AliCDBPath& path,
76 const AliCDBRunRange& runRange,
77 Int_t version, Int_t subVersion,
78 AliCDBMetaData* metaData, Bool_t owner):
80 fId(path, runRange, version, subVersion),
88 //_____________________________________________________________________________
89 AliCDBEntry::AliCDBEntry(TObject* object, const AliCDBPath& path,
90 Int_t firstRun, Int_t lastRun,
91 AliCDBMetaData* metaData, Bool_t owner):
93 fId(path, firstRun, lastRun, -1, -1),
100 //_____________________________________________________________________________
101 AliCDBEntry::AliCDBEntry(TObject* object, const AliCDBPath& path,
102 Int_t firstRun, Int_t lastRun,
103 Int_t version, AliCDBMetaData* metaData,
106 fId(path, firstRun, lastRun, version, -1),
113 //_____________________________________________________________________________
114 AliCDBEntry::AliCDBEntry( TObject* object, const AliCDBPath& path,
115 Int_t firstRun, Int_t lastRun,
116 Int_t version, Int_t subVersion,
117 AliCDBMetaData* metaData, Bool_t owner):
119 fId(path, firstRun, lastRun, version, subVersion),
120 fMetaData(metaData), fIsOwner(owner){
125 //_____________________________________________________________________________
126 AliCDBEntry::~AliCDBEntry() {
140 //_____________________________________________________________________________
141 void AliCDBEntry::PrintId() const {
143 AliInfo(Form("%s",fId.ToString().Data()));