test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
LStoreStorageMaker Class Reference
Inheritance diagram for LStoreStorageMaker:
StorageMaker

Public Member Functions

virtual bool check (const std::string &proto, const std::string &path, const AuxSettings &, IOOffset *size=0) const override
 
virtual std::unique_ptr< Storageopen (const std::string &proto, const std::string &path, int mode, const AuxSettings &) const override
 
- Public Member Functions inherited from StorageMaker
virtual void stagein (const std::string &proto, const std::string &path, const AuxSettings &aux) const
 
 StorageMaker ()=default
 
virtual ~StorageMaker ()=default
 

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,
const AuxSettings ,
IOOffset size = 0 
) const
inlineoverridevirtual

Reimplemented from StorageMaker.

Definition at line 38 of file LStoreStorageMaker.cc.

References alignCSCRings::e, Storage::END, fed_dqm_sourceclient-live_cfg::path, LStoreFile::position(), findQualityFiles::size, and AlCaHLTBitMon_QueryRunRegistry::string.

42  {
43  std::string fullpath = proto + ":" + path;
44  try {
45  LStoreFile fileObj( fullpath ); // = LStoreFile (fullpath);
46  *size = fileObj.position( 0, Storage::END );
47  } catch ( cms::Exception & e) {
48  return false;
49  }
50  return true;
51  }
tuple size
Write out results.
virtual std::unique_ptr<Storage> LStoreStorageMaker::open ( const std::string &  proto,
const std::string &  path,
int  mode,
const AuxSettings  
) const
inlineoverridevirtual

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 alignBH_cfg::mode, fed_dqm_sourceclient-live_cfg::path, and AlCaHLTBitMon_QueryRunRegistry::string.

19  {
20  std::string fullpath = proto + ":" + path;
21  return std::make_unique<LStoreFile> (fullpath, mode);
22  }