]>
Commit | Line | Data |
---|---|---|
2c8628dd | 1 | /************************************************************************** |
2 | * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
3 | * * | |
4 | * Author: The ALICE Off-line Project. * | |
5 | * Contributors are mentioned in the code where appropriate. * | |
6 | * * | |
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 | **************************************************************************/ | |
15 | ||
16 | /* $Id$ */ | |
17 | ||
18 | /////////////////////////////////////////////////////////////////////////////// | |
19 | // // | |
fe913d8f | 20 | // subsample of the CDB metadata, used to retrieve // |
21 | // a stored database object: // | |
22 | // name="Detector/DBType/DetSpecType", run validity, version // | |
2c8628dd | 23 | // // |
24 | /////////////////////////////////////////////////////////////////////////////// | |
25 | ||
26 | ||
fe913d8f | 27 | #include <TSystem.h> |
2c8628dd | 28 | |
fe913d8f | 29 | #include "AliCDBMetaDataSelect.h" |
30 | #include "AliCDBMetaData.h" | |
31 | #include "AliLog.h" | |
2c8628dd | 32 | |
33 | ||
fe913d8f | 34 | ClassImp(AliCDBMetaDataSelect) |
2c8628dd | 35 | |
2c8628dd | 36 | |
37 | //_____________________________________________________________________________ | |
fe913d8f | 38 | AliCDBMetaDataSelect::AliCDBMetaDataSelect() : |
39 | AliCDBMetaData() | |
2c8628dd | 40 | { |
fe913d8f | 41 | // default constructor |
42 | // the default values mean no selection | |
2c8628dd | 43 | } |
44 | ||
45 | //_____________________________________________________________________________ | |
fe913d8f | 46 | AliCDBMetaDataSelect::AliCDBMetaDataSelect(const char* name, Int_t firstRun, Int_t lastRun, Int_t Version) : |
47 | AliCDBMetaData(name, firstRun, lastRun) | |
2c8628dd | 48 | { |
fe913d8f | 49 | // constructor |
50 | fVersion=Version; | |
2c8628dd | 51 | } |
52 | ||
2c8628dd | 53 | //_____________________________________________________________________________ |
fe913d8f | 54 | AliCDBMetaDataSelect::AliCDBMetaDataSelect(const AliCDBMetaDataSelect& entry) : |
55 | AliCDBMetaData(entry) | |
2c8628dd | 56 | { |
57 | // copy constructor | |
2c8628dd | 58 | } |
59 | ||
2c8628dd | 60 | //_____________________________________________________________________________ |
fe913d8f | 61 | AliCDBMetaDataSelect::AliCDBMetaDataSelect(const AliCDBMetaData& entry) : |
62 | AliCDBMetaData(entry) | |
2c8628dd | 63 | { |
fe913d8f | 64 | // constructor of AliCDBMetaDataSelect from AliCDBMetaData |
65 | fPeriod=-1; | |
66 | fFormat=""; | |
67 | fResponsible="Duck, Donald"; | |
68 | fExtraInfo=""; | |
2c8628dd | 69 | } |
70 | ||
71 | ||
72 | //_____________________________________________________________________________ | |
fe913d8f | 73 | AliCDBMetaDataSelect& AliCDBMetaDataSelect::operator = (const AliCDBMetaDataSelect& entry) |
2c8628dd | 74 | { |
fe913d8f | 75 | // assignment operator |
76 | fName = entry.fName, | |
77 | fFirstRun = entry.fFirstRun; | |
78 | fLastRun = entry.fLastRun; | |
79 | fVersion = entry.fVersion; | |
80 | return *this; | |
2c8628dd | 81 | } |
82 |