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)
 
virtual Storageopen (const std::string &proto, const std::string &path, int mode)
 
- 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 
)
inlinevirtual

Reimplemented from StorageMaker.

Definition at line 37 of file LStoreStorageMaker.cc.

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

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  }
list path
Definition: scaleCards.py:51
tuple size
Write out results.
virtual Storage* LStoreStorageMaker::open ( const std::string &  proto,
const std::string &  path,
int  mode 
)
inlinevirtual

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.

18  {
19  std::string fullpath = proto + ":" + path;
20  return new LStoreFile (fullpath, mode);
21  }
list path
Definition: scaleCards.py:51