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

Definition at line 12 of file TStorageFactorySystem.cc.

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

Definition at line 17 of file TStorageFactorySystem.cc.

{}

Member Function Documentation

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

Definition at line 51 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 38 of file TStorageFactorySystem.cc.

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

Definition at line 44 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 65 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 24 of file TStorageFactorySystem.cc.

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

Definition at line 31 of file TStorageFactorySystem.cc.

{
  Error("OpenDirectory", "Unsupported");
  return 0;
}
Int_t TStorageFactorySystem::Unlink ( const char *  name) [virtual]

Definition at line 58 of file TStorageFactorySystem.cc.

{
  Error("Unlink", "Unsupported");
  return 1;
}

Member Data Documentation

Definition at line 13 of file TStorageFactorySystem.h.

Referenced by GetDirPt().