KaliVeda  1.12/06
Heavy-Ion Analysis Toolkit
KVTarArchive.h
Go to the documentation of this file.
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 
21 class KVTarArchive : public KVBase {
22  void init();
23 
24 protected:
28 
29  void CheckDirectory(const Char_t* dirname, const Char_t* path);
30  void DeleteDirectory(const Char_t* dirpath);
31 
32 public:
33  KVTarArchive();
34  KVTarArchive(const Char_t* dirname, const Char_t* path);
35  virtual ~KVTarArchive();
36  Bool_t IsOK() const
37  {
39  return fOK;
40  };
41  Bool_t IsArchive() const
42  {
44  return fTGZ;
45  };
46  const Char_t* GetFullPath() const
47  {
49  return fFullpath.Data();
50  };
51 
52 
53  ClassDef(KVTarArchive, 1) //Handles directories stored in .tgz archive files
54 };
55 
56 #endif
char Char_t
bool Bool_t
#define ClassDef(name, id)
Base class for KaliVeda framework.
Definition: KVBase.h:135
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
Definition: KVString.h:72
Handles directories stored in .tgz archive files.
Definition: KVTarArchive.h:21
Bool_t IsArchive() const
Definition: KVTarArchive.h:41
void init()
Default initialisations for ctors.
void CheckDirectory(const Char_t *dirname, const Char_t *path)
Bool_t IsOK() const
Definition: KVTarArchive.h:36
virtual ~KVTarArchive()
KVTarArchive()
Default constructor.
Bool_t fOK
set to kTRUE if directory/archive is found
Definition: KVTarArchive.h:25
const Char_t * GetFullPath() const
Definition: KVTarArchive.h:46
Bool_t fTGZ
set to kTRUE if directory is extracted from '.tgz' archive
Definition: KVTarArchive.h:26
void DeleteDirectory(const Char_t *dirpath)
KVString fFullpath
full path to directory if found/extracted
Definition: KVTarArchive.h:27
const char * Data() const