CMS 3D CMS Logo

Public Member Functions

LStoreStorageMaker Class Reference

Inheritance diagram for LStoreStorageMaker:
StorageMaker

List of all members.

Public Member Functions

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

Detailed Description

Definition at line 10 of file LStoreStorageMaker.cc.


Member Function Documentation

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

Reimplemented from StorageMaker.

Definition at line 37 of file LStoreStorageMaker.cc.

References alignCSCRings::e, Storage::END, scaleCards::path, LStoreFile::position(), and findQualityFiles::size.

  {
        std::string fullpath = proto + ":" + path;
        try {
                LStoreFile fileObj( fullpath ); // = LStoreFile (fullpath);
                *size = fileObj.position( 0, Storage::END );
        } catch ( cms::Exception & e) {
                return false;
        }
        return true;
  }
virtual Storage* LStoreStorageMaker::open ( const std::string &  proto,
const std::string &  path,
int  mode 
) [inline, virtual]

Open a storage object for the given URL (protocol + path), using the mode bits. No temporary files are downloaded.

Implements StorageMaker.

Definition at line 15 of file LStoreStorageMaker.cc.

References scaleCards::path.

  {
        std::string fullpath = proto + ":" + path;
    return new LStoreFile (fullpath, mode);
  }