test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
TStorageFactorySystem Class Reference

#include <TStorageFactorySystem.h>

Inheritance diagram for TStorageFactorySystem:

Public Member Functions

virtual Bool_t AccessPathName (const char *path, EAccessMode mode)
 
 ClassDef (TStorageFactorySystem, 0)
 
virtual void FreeDirectory (void *dirp)
 
virtual const char * GetDirEntry (void *dirp)
 
virtual Int_t GetPathInfo (const char *path, FileStat_t &info)
 
virtual Int_t MakeDirectory (const char *name)
 
virtual void * OpenDirectory (const char *name)
 
 TStorageFactorySystem (const char *, Bool_t)
 
 TStorageFactorySystem (void)
 
virtual int Unlink (const char *name)
 
 ~TStorageFactorySystem (void)
 

Private Member Functions

void * GetDirPt (void) const
 

Private Attributes

void * fDirp
 

Detailed Description

TSystem wrapper around StorageFactory and CMS Storage. This class is a blatant copy of TDCacheSystem.

Definition at line 10 of file TStorageFactorySystem.h.

Constructor & Destructor Documentation

TStorageFactorySystem::TStorageFactorySystem ( const char *  ,
Bool_t   
)

Definition at line 7 of file TStorageFactorySystem.cc.

8  : TSystem("-StorageFactory", "Storage Factory System"),
9  fDirp(0)
10 { SetName("StorageFactory"); }
TStorageFactorySystem::TStorageFactorySystem ( void  )

Definition at line 12 of file TStorageFactorySystem.cc.

13  : TSystem("-StorageFactory", "Storage Factory System"),
14  fDirp(0)
15 { SetName("StorageFactory"); }
TStorageFactorySystem::~TStorageFactorySystem ( void  )

Definition at line 17 of file TStorageFactorySystem.cc.

18 {}

Member Function Documentation

Bool_t TStorageFactorySystem::AccessPathName ( const char *  path,
EAccessMode  mode 
)
virtual

Definition at line 51 of file TStorageFactorySystem.cc.

References StorageFactory::check(), and StorageFactory::get().

52 {
53  // NB: This return reverse of check(): kTRUE if access *fails*
54  return name ? !StorageFactory::get()->check(name) : kTRUE;
55 }
bool check(const std::string &url, IOOffset *size=0) const
static const StorageFactory * get(void)
TStorageFactorySystem::ClassDef ( TStorageFactorySystem  ,
 
)
void TStorageFactorySystem::FreeDirectory ( void *  dirp)
virtual

Definition at line 38 of file TStorageFactorySystem.cc.

39 {
40  Error("FreeDirectory", "Unsupported");
41 }
const char * TStorageFactorySystem::GetDirEntry ( void *  dirp)
virtual

Definition at line 44 of file TStorageFactorySystem.cc.

45 {
46  Error("GetDirEntry", "Unsupported");
47  return 0;
48 }
void* TStorageFactorySystem::GetDirPt ( void  ) const
inlineprivate

Definition at line 14 of file TStorageFactorySystem.h.

References fDirp.

14 { return fDirp; }
Int_t TStorageFactorySystem::GetPathInfo ( const char *  path,
FileStat_t &  info 
)
virtual

Definition at line 65 of file TStorageFactorySystem.cc.

References DDVectorGetter::check(), and StorageFactory::get().

66 {
67  info.fDev = 0;
68  info.fIno = 0;
69  info.fMode = 0644;
70  info.fUid = 0;
71  info.fGid = 0;
72  info.fSize = 0;
73  info.fMtime = 0;
74 
75  IOOffset storageSize;
76  if (StorageFactory::get()->check(name, &storageSize))
77  {
78  info.fSize = storageSize;
79  return 0;
80  }
81 
82  return -1;
83 }
static const TGPicture * info(bool iBackgroundIsBlack)
static const StorageFactory * get(void)
bool check(const std::string &)
int64_t IOOffset
Definition: IOTypes.h:19
Int_t TStorageFactorySystem::MakeDirectory ( const char *  name)
virtual

Definition at line 24 of file TStorageFactorySystem.cc.

25 {
26  Error("MakeDirectory", "Unsupported");
27  return -1;
28 }
void * TStorageFactorySystem::OpenDirectory ( const char *  name)
virtual

Definition at line 31 of file TStorageFactorySystem.cc.

32 {
33  Error("OpenDirectory", "Unsupported");
34  return 0;
35 }
Int_t TStorageFactorySystem::Unlink ( const char *  name)
virtual

Definition at line 58 of file TStorageFactorySystem.cc.

59 {
60  Error("Unlink", "Unsupported");
61  return 1;
62 }

Member Data Documentation

void* TStorageFactorySystem::fDirp
private

Definition at line 13 of file TStorageFactorySystem.h.

Referenced by GetDirPt().