Public Member Functions | |
virtual bool | check (const std::string &proto, const std::string &path, IOOffset *size=0) |
virtual Storage * | open (const std::string &proto, const std::string &path, int mode) |
Definition at line 10 of file LStoreStorageMaker.cc.
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, getHLTPrescaleColumns::path, LStoreFile::position(), findQualityFiles::size, and AlCaHLTBitMon_QueryRunRegistry::string.
{ 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 getHLTPrescaleColumns::path, and AlCaHLTBitMon_QueryRunRegistry::string.
{ std::string fullpath = proto + ":" + path; return new LStoreFile (fullpath, mode); }