FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairFileInfo.h
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 // FairFileInfo.h
9 // Created by Mohammad Al-Turany on 6/21/11.
10 //
11 #ifndef FAIRFILEINFO_H
12 #define FAIRFILEINFO_H
13 
14 #include <Rtypes.h> // for UInt_t, FairFileInfo::Class, etc
15 #include <TNamed.h> // for TNamed
16 #include <TString.h> // for TString
17 
18 class TFile;
19 
20 class FairFileInfo : public TNamed
21 {
22  public:
23  FairFileInfo();
24  FairFileInfo(TFile* file, UInt_t id, UInt_t ChId);
25  virtual ~FairFileInfo();
26 
27  TString GetPath() { return fPath; }
28  UInt_t GetSize() { return fSize; }
29  UInt_t GetIdentifier() { return fIdentifier; }
30  UInt_t GetOrderInChain() { return fInChainId; }
31 
32  void Print(Option_t* option = "") const;
33 
34  void SetPath(TString path) { fPath = path; }
35  void SetSize(UInt_t size) { fSize = size; }
36  void SetIdentifier(UInt_t id) { fIdentifier = id; }
37  void SetOrderInChain(UInt_t id) { fInChainId = id; }
38 
39  protected:
41  TString fPath;
43  UInt_t fSize;
45  UInt_t fIdentifier;
47  UInt_t fInChainId;
48 
49  private:
50  FairFileInfo(const FairFileInfo&);
51  FairFileInfo& operator=(const FairFileInfo&);
52 
53  ClassDef(FairFileInfo, 1);
54 };
55 
56 #endif // FAIRFILEINFO_H
UInt_t fInChainId
Definition: FairFileInfo.h:47
void SetSize(UInt_t size)
Definition: FairFileInfo.h:35
void SetOrderInChain(UInt_t id)
Definition: FairFileInfo.h:37
virtual ~FairFileInfo()
TString fPath
Definition: FairFileInfo.h:41
void SetIdentifier(UInt_t id)
Definition: FairFileInfo.h:36
UInt_t GetIdentifier()
Definition: FairFileInfo.h:29
UInt_t GetSize()
Definition: FairFileInfo.h:28
UInt_t fSize
Definition: FairFileInfo.h:43
UInt_t fIdentifier
Definition: FairFileInfo.h:45
void Print(Option_t *option="") const
void SetPath(TString path)
Definition: FairFileInfo.h:34
UInt_t GetOrderInChain()
Definition: FairFileInfo.h:30
TString GetPath()
Definition: FairFileInfo.h:27