KaliVeda
Toolkit for HIC analysis
KVTarArchive.h
1 /*
2 $Id: KVClassFactory.cpp,v 1.19 2009/01/21 08:04:20 franklan Exp $
3 $Revision: 1.19 $
4 $Date: 2009/01/21 08:04:20 $
5 */
6 
9 
10 #ifndef __KVTARARCHIVE_H
11 #define __KVTARARCHIVE_H
12 
13 #include "KVBase.h"
14 
22 class KVTarArchive : public KVBase {
23  void init();
24 
25 protected:
29 
30  void CheckDirectory(const Char_t* dirname, const Char_t* path);
31  void DeleteDirectory(const Char_t* dirpath);
32 
33 public:
34  KVTarArchive();
35  KVTarArchive(const Char_t* dirname, const Char_t* path);
36  virtual ~KVTarArchive();
37  Bool_t IsOK() const
38  {
40  return fOK;
41  };
42  Bool_t IsArchive() const
43  {
45  return fTGZ;
46  };
47  const Char_t* GetFullPath() const
48  {
50  return fFullpath.Data();
51  };
52 
53 
54  ClassDef(KVTarArchive, 1) //Handles directories stored in .tgz archive files
55 };
56 
57 #endif
bool Bool_t
char Char_t
#define ClassDef(name, id)
Base class for KaliVeda framework.
Definition: KVBase.h:142
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
Definition: KVString.h:73
Handles directories stored in .tgz archive files.
Definition: KVTarArchive.h:22
Bool_t IsArchive() const
Definition: KVTarArchive.h:42
void init()
Default initialisations for ctors.
void CheckDirectory(const Char_t *dirname, const Char_t *path)
Bool_t IsOK() const
Definition: KVTarArchive.h:37
virtual ~KVTarArchive()
KVTarArchive()
Default constructor.
Bool_t fOK
set to kTRUE if directory/archive is found
Definition: KVTarArchive.h:26
const Char_t * GetFullPath() const
Definition: KVTarArchive.h:47
Bool_t fTGZ
set to kTRUE if directory is extracted from '.tgz' archive
Definition: KVTarArchive.h:27
void DeleteDirectory(const Char_t *dirpath)
KVString fFullpath
full path to directory if found/extracted
Definition: KVTarArchive.h:28
const char * Data() const