CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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

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

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 8 of file TStorageFactorySystem.cc.

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

Definition at line 13 of file TStorageFactorySystem.cc.

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

Definition at line 18 of file TStorageFactorySystem.cc.

18 {}

Member Function Documentation

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

Definition at line 40 of file TStorageFactorySystem.cc.

References get.

40  {
41  // NB: This return reverse of check(): kTRUE if access *fails*
42  return name ? !StorageFactory::get()->check(name) : kTRUE;
43 }
#define get
TStorageFactorySystem::ClassDefOverride ( TStorageFactorySystem  ,
 
)
void TStorageFactorySystem::FreeDirectory ( void *  dirp)
override

Definition at line 33 of file TStorageFactorySystem.cc.

33 { Error("FreeDirectory", "Unsupported"); }
edm::ErrorSummaryEntry Error
const char * TStorageFactorySystem::GetDirEntry ( void *  dirp)
override

Definition at line 35 of file TStorageFactorySystem.cc.

35  {
36  Error("GetDirEntry", "Unsupported");
37  return nullptr;
38 }
edm::ErrorSummaryEntry Error
void* TStorageFactorySystem::GetDirPt ( void  ) const
inlineprivate

Definition at line 13 of file TStorageFactorySystem.h.

References fDirp.

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

Definition at line 50 of file TStorageFactorySystem.cc.

References trackerTree::check(), and get.

50  {
51  info.fDev = 0;
52  info.fIno = 0;
53  info.fMode = 0644;
54  info.fUid = 0;
55  info.fGid = 0;
56  info.fSize = 0;
57  info.fMtime = 0;
58 
59  IOOffset storageSize;
60  if (StorageFactory::get()->check(name, &storageSize)) {
61  info.fSize = storageSize;
62  return 0;
63  }
64 
65  return -1;
66 }
int64_t IOOffset
Definition: IOTypes.h:20
static const TGPicture * info(bool iBackgroundIsBlack)
#define get
Int_t TStorageFactorySystem::MakeDirectory ( const char *  name)
override

Definition at line 23 of file TStorageFactorySystem.cc.

23  {
24  Error("MakeDirectory", "Unsupported");
25  return -1;
26 }
edm::ErrorSummaryEntry Error
void * TStorageFactorySystem::OpenDirectory ( const char *  name)
override

Definition at line 28 of file TStorageFactorySystem.cc.

28  {
29  Error("OpenDirectory", "Unsupported");
30  return nullptr;
31 }
edm::ErrorSummaryEntry Error
Int_t TStorageFactorySystem::Unlink ( const char *  name)
override

Definition at line 45 of file TStorageFactorySystem.cc.

45  {
46  Error("Unlink", "Unsupported");
47  return 1;
48 }
edm::ErrorSummaryEntry Error

Member Data Documentation

void* TStorageFactorySystem::fDirp
private

Definition at line 12 of file TStorageFactorySystem.h.

Referenced by GetDirPt().