CMS 3D CMS Logo

Public Member Functions

LocalStorageMaker Class Reference

Inheritance diagram for LocalStorageMaker:
StorageMaker

List of all members.

Public Member Functions

virtual bool check (const std::string &, const std::string &path, IOOffset *size=0)
virtual Storageopen (const std::string &proto, const std::string &path, int mode)

Detailed Description

Definition at line 11 of file LocalStorageMaker.cc.


Member Function Documentation

virtual bool LocalStorageMaker::check ( const std::string &  ,
const std::string &  path,
IOOffset size = 0 
) [inline, virtual]

Reimplemented from StorageMaker.

Definition at line 32 of file LocalStorageMaker.cc.

References findQualityFiles::size.

    {
      struct stat st;
      if (stat (path.c_str(), &st) != 0)
        return false;

      if (size)
        *size = st.st_size;

      return true;
    }
virtual Storage* LocalStorageMaker::open ( const std::string &  proto,
const std::string &  path,
int  mode 
) [inline, virtual]