KaliVeda
Toolkit for HIC analysis
KVSystemFile.h
1 
4 #ifndef __KVSYSTEMFILE_H
5 #define __KVSYSTEMFILE_H
6 
7 #include "TSystemFile.h"
8 #include "TSystem.h"
9 #include "TDatime.h"
10 
18 class KVSystemFile : public TSystemFile {
22 
23 public:
24  KVSystemFile();
25  KVSystemFile(const Char_t* filename, const Char_t* dirname);
26  virtual ~KVSystemFile();
27 
28  void ls(Option_t* option = "") const;
29 
30  const Char_t* GetUser() const
31  {
32  if (fUserInfo) return fUserInfo->fUser;
33  return "";
34  }
35  const Char_t* GetGroup() const
36  {
37  if (fUserInfo) return fUserInfo->fGroup;
38  return "";
39  }
40  Long64_t GetSize() const
41  {
42  return fFileInfos.fSize;
43  }
44  const Char_t* GetDate() const
45  {
47  return when.AsSQLString();
48  }
49  const Char_t* GetFullPath() const
50  {
51  return fFullPath;
52  }
53 
54  ClassDef(KVSystemFile, 1) //TSystemFile with added info on file size etc.
55 };
56 
57 #endif
char Char_t
const char Option_t
#define ClassDef(name, id)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void when
Extended ROOT TSystemFile with added info on file size etc.
Definition: KVSystemFile.h:18
virtual ~KVSystemFile()
Destructor.
void ls(Option_t *option="") const
const Char_t * GetGroup() const
Definition: KVSystemFile.h:35
const Char_t * GetDate() const
Definition: KVSystemFile.h:44
KVSystemFile()
Default constructor.
const Char_t * GetFullPath() const
Definition: KVSystemFile.h:49
FileStat_t fFileInfos
Definition: KVSystemFile.h:19
const Char_t * GetUser() const
Definition: KVSystemFile.h:30
UserGroup_t * fUserInfo
Definition: KVSystemFile.h:20
TString fFullPath
Definition: KVSystemFile.h:21
Long64_t GetSize() const
Definition: KVSystemFile.h:40
long long Long64_t
Long64_t fSize
Long_t fMtime
TString fUser
TString fGroup