KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
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
22class KVTarArchive : public KVBase {
23 void init();
24
25protected:
29
30 void CheckDirectory(const Char_t* dirname, const Char_t* path);
31 void DeleteDirectory(const Char_t* dirpath);
32
33public:
35 KVTarArchive(const Char_t* dirname, const Char_t* path);
36 virtual ~KVTarArchive();
37 Bool_t IsOK() const
38 {
40 return fOK;
41 };
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.
Bool_t IsArchive() const
void init()
Default initialisations for ctors.
void CheckDirectory(const Char_t *dirname, const Char_t *path)
Bool_t IsOK() const
virtual ~KVTarArchive()
KVTarArchive()
Default constructor.
Bool_t fOK
set to kTRUE if directory/archive is found
const Char_t * GetFullPath() const
Bool_t fTGZ
set to kTRUE if directory is extracted from '.tgz' archive
void DeleteDirectory(const Char_t *dirpath)
KVString fFullpath
full path to directory if found/extracted
const char * Data() const