#include <FileBlob.h>
Public Member Functions | |
FileBlob () | |
FileBlob (const std::string &fname, bool zip) | |
constructor from file to read More... | |
FileBlob (std::istream &is, bool zip) | |
constructor from stream to read More... | |
std::unique_ptr< std::vector < unsigned char > > | getUncompressedBlob () const |
i didn't want to do two copies ... hope this works. More... | |
void | getUncompressedBlob (std::vector< unsigned char > &myblobcopy) const |
bool | isCompressed () const |
void | read (const std::string &) |
read from real file More... | |
void | read (std::istream &) |
read from istream More... | |
int | size () const |
void | write (const std::string &) const |
write to real file More... | |
void | write (std::ostream &) const |
write to ostream More... | |
~FileBlob () | |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
Static Private Member Functions | |
static unsigned int | computeFileSize (const std::string &) |
static unsigned int | computeStreamSize (std::istream &) |
Private Attributes | |
std::vector< unsigned char > | blob |
bool | compressed |
unsigned int | isize |
Friends | |
class | boost::serialization::access |
template<typename CondSerializationT , typename Enabled > | |
struct | cond::serialization::access |
Definition at line 11 of file FileBlob.h.
|
inline |
FileBlob::FileBlob | ( | const std::string & | fname, |
bool | zip | ||
) |
constructor from file to read
Definition at line 11 of file FileBlob.cc.
References blob, compressed, computeFileSize(), isize, read(), and ComparisonHelper::zip().
FileBlob::FileBlob | ( | std::istream & | is, |
bool | zip | ||
) |
constructor from stream to read
Definition at line 24 of file FileBlob.cc.
References blob, compressed, computeStreamSize(), isize, read(), and ComparisonHelper::zip().
|
inline |
Definition at line 22 of file FileBlob.h.
|
staticprivate |
Definition at line 119 of file FileBlob.cc.
References computeStreamSize(), and compare_using_db::ifile.
Referenced by FileBlob().
|
staticprivate |
Definition at line 130 of file FileBlob.cc.
References c.
Referenced by computeFileSize(), and FileBlob().
std::unique_ptr< std::vector< unsigned char > > FileBlob::getUncompressedBlob | ( | ) | const |
i didn't want to do two copies ... hope this works.
Definition at line 75 of file FileBlob.cc.
References blob, compressed, isize, and spu::zerr().
Referenced by MillePedeFileExtractor::writeGzipped().
void FileBlob::getUncompressedBlob | ( | std::vector< unsigned char > & | myblobcopy | ) | const |
Definition at line 91 of file FileBlob.cc.
References blob, compressed, isize, and spu::zerr().
|
inline |
void FileBlob::read | ( | const std::string & | fname | ) |
read from real file
Definition at line 104 of file FileBlob.cc.
References compare_using_db::ifile.
Referenced by FileBlob(), and edmIntegrityCheck.PublishToFileSystem::get().
void FileBlob::read | ( | std::istream & | is | ) |
read from istream
Definition at line 32 of file FileBlob.cc.
References blob, c, compressed, recoMuon::in, isize, and spu::zerr().
Referenced by edmIntegrityCheck.PublishToFileSystem::get().
|
private |
|
inline |
Definition at line 36 of file FileBlob.h.
References isize.
Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), and popcon::DQMXMLFileSourceHandler::getNewObjects().
void FileBlob::write | ( | const std::string & | fname | ) | const |
write to real file
Definition at line 113 of file FileBlob.cc.
Referenced by pkg.AbstractPkg::generate().
void FileBlob::write | ( | std::ostream & | os | ) | const |
write to ostream
Definition at line 61 of file FileBlob.cc.
References blob, compressed, isize, submitPVResolutionJobs::out, and spu::zerr().
Referenced by pkg.AbstractPkg::generate().
|
friend |
Definition at line 51 of file FileBlob.h.
|
friend |
Definition at line 51 of file FileBlob.h.
|
private |
Definition at line 47 of file FileBlob.h.
Referenced by FileBlob(), getUncompressedBlob(), read(), and write().
|
private |
Definition at line 48 of file FileBlob.h.
Referenced by FileBlob(), getUncompressedBlob(), isCompressed(), read(), and write().
|
private |
Definition at line 49 of file FileBlob.h.
Referenced by FileBlob(), getUncompressedBlob(), read(), size(), and write().