#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 10 of file FileBlob.h.
|
inline |
Definition at line 13 of file FileBlob.h.
FileBlob::FileBlob | ( | const std::string & | fname, |
bool | zip | ||
) |
constructor from file to read
Definition at line 9 of file FileBlob.cc.
References blob, compressed, computeFileSize(), isize, and read().
FileBlob::FileBlob | ( | std::istream & | is, |
bool | zip | ||
) |
constructor from stream to read
Definition at line 21 of file FileBlob.cc.
References blob, compressed, computeStreamSize(), isize, and read().
|
inline |
Definition at line 19 of file FileBlob.h.
|
staticprivate |
Definition at line 123 of file FileBlob.cc.
References computeStreamSize(), and compare_using_db::ifile.
Referenced by FileBlob().
|
staticprivate |
Definition at line 132 of file FileBlob.cc.
References EnergyCorrector::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 74 of file FileBlob.cc.
References blob, compressed, isize, and spu::zerr().
void FileBlob::getUncompressedBlob | ( | std::vector< unsigned char > & | myblobcopy | ) | const |
Definition at line 93 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 110 of file FileBlob.cc.
References compare_using_db::ifile.
Referenced by FileBlob(), edmIntegrityCheck.PublishToFileSystem::get(), Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor::goto(), and Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor::setFilterBranches().
void FileBlob::read | ( | std::istream & | is | ) |
read from istream
Definition at line 28 of file FileBlob.cc.
References blob, EnergyCorrector::c, compressed, recoMuon::in, isize, and spu::zerr().
Referenced by edmIntegrityCheck.PublishToFileSystem::get(), Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor::goto(), and Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor::setFilterBranches().
|
private |
|
inline |
Definition at line 33 of file FileBlob.h.
References isize.
Referenced by MillePedeFileConverter::endRunProduce(), popcon::DQMXMLFileSourceHandler::getNewObjects(), and popcon::DQMReferenceHistogramRootFileSourceHandler::getNewObjects().
void FileBlob::write | ( | const std::string & | fname | ) | const |
write to real file
Definition at line 117 of file FileBlob.cc.
References checklumidiff::ofile.
Referenced by pkg.AbstractPkg::generate().
void FileBlob::write | ( | std::ostream & | os | ) | const |
write to ostream
Definition at line 58 of file FileBlob.cc.
References blob, compressed, isize, dbtoconf::out, and spu::zerr().
Referenced by pkg.AbstractPkg::generate().
|
friend |
Definition at line 48 of file FileBlob.h.
|
friend |
Definition at line 48 of file FileBlob.h.
|
private |
Definition at line 44 of file FileBlob.h.
Referenced by FileBlob(), getUncompressedBlob(), read(), and write().
|
private |
Definition at line 45 of file FileBlob.h.
Referenced by FileBlob(), getUncompressedBlob(), isCompressed(), read(), and write().
|
private |
Definition at line 46 of file FileBlob.h.
Referenced by FileBlob(), getUncompressedBlob(), read(), size(), and write().