CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

TStorageFactorySystem Class Reference

#include <TStorageFactorySystem.h>

List of all members.

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 (void)
 ~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 ( void  )
TStorageFactorySystem::~TStorageFactorySystem ( void  )

Definition at line 11 of file TStorageFactorySystem.cc.

{}

Member Function Documentation

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

Definition at line 45 of file TStorageFactorySystem.cc.

References reco::get().

{
  // NB: This return reverse of check(): kTRUE if access *fails*
  return name ? !StorageFactory::get()->check(name) : kTRUE;
}
TStorageFactorySystem::ClassDef ( TStorageFactorySystem  ,
 
)
void TStorageFactorySystem::FreeDirectory ( void *  dirp) [virtual]

Definition at line 32 of file TStorageFactorySystem.cc.

{
  Error("FreeDirectory", "Unsupported");
}
const char * TStorageFactorySystem::GetDirEntry ( void *  dirp) [virtual]

Definition at line 38 of file TStorageFactorySystem.cc.

{
  Error("GetDirEntry", "Unsupported");
  return 0;
}
void* TStorageFactorySystem::GetDirPt ( void  ) const [inline, private]

Definition at line 14 of file TStorageFactorySystem.h.

References fDirp.

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

Definition at line 52 of file TStorageFactorySystem.cc.

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

{
  info.fDev = 0;
  info.fIno = 0;
  info.fMode = 0644;
  info.fUid = 0;
  info.fGid = 0;
  info.fSize = 0;
  info.fMtime = 0;

  IOOffset storageSize;
  if (StorageFactory::get()->check(name, &storageSize))
  {
    info.fSize = storageSize;
    return 0;
  }

  return -1;
}
Int_t TStorageFactorySystem::MakeDirectory ( const char *  name) [virtual]

Definition at line 18 of file TStorageFactorySystem.cc.

{
  Error("MakeDirectory", "Unsupported");
  return -1;
}
void * TStorageFactorySystem::OpenDirectory ( const char *  name) [virtual]

Definition at line 25 of file TStorageFactorySystem.cc.

{
  Error("OpenDirectory", "Unsupported");
  return 0;
}

Member Data Documentation

Definition at line 13 of file TStorageFactorySystem.h.

Referenced by GetDirPt().