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