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():
34 // default constructor
38 //_____________________________________________________________________________
39 AliCDBEntry::AliCDBEntry(TObject* object, const AliCDBId& id,
40 AliCDBMetaData* metaData, Bool_t owner):
49 //_____________________________________________________________________________
50 AliCDBEntry::AliCDBEntry(TObject* object, const AliCDBPath& path,
51 const AliCDBRunRange& runRange,
52 AliCDBMetaData* metaData,Bool_t owner):
54 fId(path, runRange, -1, -1),
61 //_____________________________________________________________________________
62 AliCDBEntry::AliCDBEntry(TObject* object, const AliCDBPath& path,
63 const AliCDBRunRange& runRange,
64 Int_t version, AliCDBMetaData* metaData, Bool_t owner):
66 fId(path, runRange, version, -1),
73 //_____________________________________________________________________________
74 AliCDBEntry::AliCDBEntry(TObject* object, const AliCDBPath& path,
75 const AliCDBRunRange& runRange,
76 Int_t version, Int_t subVersion,
77 AliCDBMetaData* metaData, Bool_t owner):
79 fId(path, runRange, version, subVersion),
87 //_____________________________________________________________________________
88 AliCDBEntry::AliCDBEntry(TObject* object, const AliCDBPath& path,
89 Int_t firstRun, Int_t lastRun,
90 AliCDBMetaData* metaData, Bool_t owner):
92 fId(path, firstRun, lastRun, -1, -1),
99 //_____________________________________________________________________________
100 AliCDBEntry::AliCDBEntry(TObject* object, const AliCDBPath& path,
101 Int_t firstRun, Int_t lastRun,
102 Int_t version, AliCDBMetaData* metaData,
105 fId(path, firstRun, lastRun, version, -1),
112 //_____________________________________________________________________________
113 AliCDBEntry::AliCDBEntry( TObject* object, const AliCDBPath& path,
114 Int_t firstRun, Int_t lastRun,
115 Int_t version, Int_t subVersion,
116 AliCDBMetaData* metaData, Bool_t owner):
118 fId(path, firstRun, lastRun, version, subVersion),
119 fMetaData(metaData), fIsOwner(owner){
124 //_____________________________________________________________________________
125 AliCDBEntry::~AliCDBEntry() {
139 //_____________________________________________________________________________
140 void AliCDBEntry::PrintId() const {
142 AliInfo(Form("%s",fId.ToString().Data()));