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, IOOffset *size=0) override
 
virtual Storageopen (const std::string &proto, const std::string &path, int mode) override
 
- Public Member Functions inherited from StorageMaker
virtual void setDebugLevel (unsigned int debugLevel)
 
virtual void setTimeout (unsigned int timeout)
 
virtual void stagein (const std::string &proto, const std::string &path)
 
 StorageMaker (void)
 
virtual ~StorageMaker (void)
 

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 
)
inlineoverridevirtual

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.

40  {
41  std::string fullpath = proto + ":" + path;
42  try {
43  LStoreFile fileObj( fullpath ); // = LStoreFile (fullpath);
44  *size = fileObj.position( 0, Storage::END );
45  } catch ( cms::Exception & e) {
46  return false;
47  }
48  return true;
49  }
tuple size
Write out results.
virtual Storage* LStoreStorageMaker::open ( const std::string &  proto,
const std::string &  path,
int  mode 
)
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 getHLTPrescaleColumns::path, and AlCaHLTBitMon_QueryRunRegistry::string.

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